mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
a91cd2210e
refs #5343, #5652 - implements basic post and user search using selectize input - queries minimal API endpoint and refreshes results on search input focus if results are older than 60 seconds
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');
|
|
});
|
|
}
|
|
);
|