mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 09:50:34 +03:00
c5b0301e87
* 👷 ✅ Editor tests Added acceptance tests for koenig markdown-like support. Added some unit tests for koenig located in the /lib/koenig/test-support directory.
27 lines
703 B
JavaScript
27 lines
703 B
JavaScript
/* jshint expr:true */
|
|
import {expect} from 'chai';
|
|
import {describe, it} from 'mocha';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
import {editorShim} from '../../utils';
|
|
|
|
|
|
describe.skip('Unit: Component: koenig-toolbar-newitem', function () {
|
|
setupComponentTest('koenig-toolbar-newitem', {
|
|
unit: true,
|
|
needs: [
|
|
'component:koenig-toolbar-button'
|
|
]
|
|
});
|
|
|
|
it('renders', function () {
|
|
|
|
let component = this.subject();
|
|
component.editor = editorShim;
|
|
expect(component._state).to.equal('preRender');
|
|
|
|
// renders the component on the page
|
|
this.render();
|
|
expect(component._state).to.equal('inDOM');
|
|
});
|
|
});
|