mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
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);
|
||
|
});
|
||
|
});
|