mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +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.
23 lines
829 B
JavaScript
23 lines
829 B
JavaScript
/* jshint expr:true */
|
|
import {expect} from 'chai';
|
|
import {describe, it} from 'mocha';
|
|
import {setupComponentTest} from 'ember-mocha';
|
|
import sinon from 'sinon';
|
|
|
|
describe.skip('Unit: Component: koenig-toolbar', function () {
|
|
setupComponentTest('koenig-toolbar', {
|
|
unit: true
|
|
});
|
|
|
|
it('The toolbar is not rendered by default.', function () {
|
|
let component = this.subject();
|
|
expect(component.isVisible).to.be.false;
|
|
});
|
|
|
|
it('The toolbar contains tools.', function () {
|
|
let component = this.subject();
|
|
expect(component.get('toolbar').length).to.be.greaterThan(0); // the standard toolbar tools (strong, em, strikethrough, link)
|
|
expect(component.get('toolbarBlocks').length).to.be.greaterThan(0); // extended toolbar block bases tools (h1, h2, quote);
|
|
});
|
|
});
|