Ghost/ghost/admin/tests/unit/components/gh-app-test.js

23 lines
648 B
JavaScript
Raw Normal View History

2016-11-24 01:50:57 +03:00
import {describe, it} from 'mocha';
import {expect} from 'chai';
2016-11-24 01:50:57 +03:00
import {setupComponentTest} from 'ember-mocha';
2016-11-24 01:50:57 +03:00
describe('Unit: Component: gh-app', function () {
setupComponentTest('gh-app', {
unit: true
// specify the other units that are required for this test
// needs: ['component:foo', 'helper:bar']
2016-11-24 01:50:57 +03:00
});
2016-11-24 01:50:57 +03:00
it('renders', function () {
// creates the component instance
let component = this.subject();
2016-11-24 01:50:57 +03:00
expect(component._state).to.equal('preRender');
// renders the component on the page
this.render();
expect(component._state).to.equal('inDOM');
});
});