2016-11-24 01:50:57 +03:00
|
|
|
import {describe, it} from 'mocha';
|
2017-05-29 21:50:03 +03:00
|
|
|
import {expect} from 'chai';
|
2016-11-24 01:50:57 +03:00
|
|
|
import {setupComponentTest} from 'ember-mocha';
|
2015-06-13 17:34:09 +03:00
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
describe('Unit: Component: gh-user-active', function () {
|
|
|
|
setupComponentTest('gh-user-active', {
|
2017-03-29 01:22:02 +03:00
|
|
|
unit: true,
|
2015-06-13 17:34:09 +03:00
|
|
|
// specify the other units that are required for this test
|
2017-03-29 01:22:02 +03:00
|
|
|
needs: ['service:ghostPaths']
|
2016-11-24 01:50:57 +03:00
|
|
|
});
|
2015-06-13 17:34:09 +03:00
|
|
|
|
2016-11-24 01:50:57 +03:00
|
|
|
it('renders', function () {
|
|
|
|
// creates the component instance
|
|
|
|
let component = this.subject();
|
2015-06-13 17:34:09 +03:00
|
|
|
|
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');
|
|
|
|
});
|
|
|
|
});
|