2015-06-13 17:34:09 +03:00
|
|
|
/* jshint expr:true */
|
|
|
|
import {expect} from 'chai';
|
|
|
|
import {
|
|
|
|
describeComponent,
|
|
|
|
it
|
|
|
|
} from 'ember-mocha';
|
|
|
|
|
|
|
|
describeComponent(
|
|
|
|
'gh-app',
|
2015-10-06 19:31:03 +03:00
|
|
|
'Unit: Component: gh-app',
|
2015-06-13 17:34:09 +03:00
|
|
|
{
|
2015-10-06 19:31:03 +03:00
|
|
|
unit: true
|
|
|
|
// specify the other units that are required for this test
|
|
|
|
// needs: ['component:foo', 'helper:bar']
|
2015-06-13 17:34:09 +03:00
|
|
|
},
|
|
|
|
function () {
|
|
|
|
it('renders', function () {
|
|
|
|
// creates the component instance
|
|
|
|
var component = this.subject();
|
|
|
|
|
|
|
|
expect(component._state).to.equal('preRender');
|
|
|
|
|
|
|
|
// renders the component on the page
|
|
|
|
this.render();
|
|
|
|
expect(component._state).to.equal('inDOM');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|