This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { expect } from 'chai'; | |
import { describe, it, beforeEach } from 'mocha'; | |
import { setupComponentTest } from 'ember-mocha'; | |
import hbs from 'htmlbars-inline-precompile'; | |
describe('Integration | Component | ui form group', function() { | |
const LABEL = '[test-id="txtLabel"]'; | |
const DESCRIPTION = '[test-id="txtDescription"]'; | |
setupComponentTest('ui-form-group', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import hbs from 'htmlbars-inline-precompile'; | |
const { | |
Component | |
} = Ember; | |
export default Component.extend({ | |
classNames: ['alert-container'], | |
attributeBindings: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
model: null | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const { | |
get, | |
set, | |
isPresent | |
} = Ember; | |
export default Ember.Controller.extend({ | |
appName: 'Dragon', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
// This would live on some non-application route | |
export default Ember.Controller.extend({ | |
queryParams: ['inquiryType', 'inquiryId'], | |
inquiryType: null, | |
inquiryId: null, | |
isTransactionInquiry: Ember.computed.equal('inquiryType', 'transaction'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const { | |
get, | |
computed | |
} = Ember; | |
export default Ember.Component.extend({ | |
id: null, | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Em from 'ember'; | |
const { | |
computed | |
} = Em; | |
export default. Em.Component.extend({ | |
datum: null, | |
pfmData: computed.readOnly('datum.pfmData'), | |
actions: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const { | |
Mixin, | |
get, | |
computed | |
} = Ember; | |
export default Mixin.create({ | |
classNameBindings: ['idClass'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const { | |
Component, | |
get, | |
set, | |
computed, | |
isEmpty, | |
run | |
} = Ember; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint eqeq: true*/ | |
import Ember from 'ember'; | |
/** | |
* Almost equal helpers | |
* @param {Array} params Array of params | |
* @return {Boolean} Whether or not the passed params equal value but perhaps not type | |
*/ | |
export function aeq(params) { | |
return params[0] == params[1]; |