mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
24 lines
711 B
JavaScript
24 lines
711 B
JavaScript
/* jshint expr:true */
|
|
import {expect} from 'chai';
|
|
import {describe, it} from 'mocha';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
|
|
describe('Unit: Component: gh-content-preview-content', function () {
|
|
setupComponentTest('gh-content-preview-content', {
|
|
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');
|
|
});
|
|
});
|