mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
2833675238
closes #3928 - adds spin-button component & styles - implements spin-button in places where buttons trigger async tasks
32 lines
748 B
JavaScript
32 lines
748 B
JavaScript
/* jshint expr:true */
|
|
import {expect} from 'chai';
|
|
import {
|
|
describeComponent,
|
|
it
|
|
} from 'ember-mocha';
|
|
|
|
describeComponent(
|
|
'gh-editor-save-button',
|
|
'GhEditorSaveButtonComponent',
|
|
{
|
|
needs: [
|
|
'component:gh-dropdown-button',
|
|
'component:gh-dropdown',
|
|
'component:gh-spin-button',
|
|
'service:dropdown'
|
|
]
|
|
},
|
|
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');
|
|
});
|
|
}
|
|
);
|