mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
748895ce77
closes #3928 - adds spin-button component & styles - implements spin-button in places where buttons trigger async tasks
27 lines
673 B
JavaScript
27 lines
673 B
JavaScript
/* jshint expr:true */
|
|
import {expect} from 'chai';
|
|
import {
|
|
describeComponent,
|
|
it
|
|
} from 'ember-mocha';
|
|
|
|
describeComponent(
|
|
'gh-spin-button',
|
|
'GhSpinButtonComponent',
|
|
{
|
|
// specify the other units that are required for this test
|
|
// needs: ['component:foo', 'helper:bar']
|
|
},
|
|
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');
|
|
});
|
|
}
|
|
);
|