Ghost/ghost/admin/tests/unit/components/gh-user-active-test.js
2016-11-27 15:26:05 +01:00

24 lines
687 B
JavaScript

/* jshint expr:true */
import {expect} from 'chai';
import {describe, it} from 'mocha';
import {setupComponentTest} from 'ember-mocha';
describe('Unit: Component: gh-user-active', function () {
setupComponentTest('gh-user-active', {
unit: true
// specify the other units that are required for this test
// needs: ['component:foo', 'helper:bar']
});
it('renders', function () {
// creates the component instance
let component = this.subject();
expect(component._state).to.equal('preRender');
// renders the component on the page
this.render();
expect(component._state).to.equal('inDOM');
});
});