mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
26 lines
601 B
JavaScript
26 lines
601 B
JavaScript
|
/* jshint expr:true */
|
||
|
import { expect } from 'chai';
|
||
|
import {
|
||
|
describeComponent,
|
||
|
it
|
||
|
} from 'ember-mocha';
|
||
|
|
||
|
describeComponent(
|
||
|
'gh-search-input',
|
||
|
'GhSearchInputComponent',
|
||
|
{
|
||
|
needs: ['component:gh-selectize']
|
||
|
},
|
||
|
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');
|
||
|
});
|
||
|
}
|
||
|
);
|