2015-08-28 17:35:06 +01:00
|
|
|
/* jshint expr:true */
|
|
|
|
import { expect } from 'chai';
|
|
|
|
import {
|
|
|
|
describeComponent,
|
|
|
|
it
|
|
|
|
} from 'ember-mocha';
|
|
|
|
|
|
|
|
describeComponent(
|
|
|
|
'gh-search-input',
|
2015-10-06 17:31:03 +01:00
|
|
|
'Unit: Component: gh-search-input',
|
2015-08-28 17:35:06 +01:00
|
|
|
{
|
2015-10-06 17:31:03 +01:00
|
|
|
unit: true,
|
2015-08-28 17:35:06 +01:00
|
|
|
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');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|