bold.js 863 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. import Editor from '/ckeditor5/editor.js';
  7. import Bold from '/ckeditor5/basic-styles/bold.js';
  8. import BoldEngine from '/ckeditor5/basic-styles/boldengine.js';
  9. import ClassicCreator from '/ckeditor5/creator-classic/classiccreator.js';
  10. describe( 'Bold', () => {
  11. let editor;
  12. beforeEach( () => {
  13. editor = new Editor( { 'editor': document.getElementById( 'editor' ) }, {
  14. creator: ClassicCreator,
  15. features: [ Bold ],
  16. toolbar: [ 'bold' ]
  17. } );
  18. return editor.init();
  19. } );
  20. it( 'should be loaded', () => {
  21. expect( editor.plugins.get( Bold ) ).to.be.instanceOf( Bold );
  22. } );
  23. it( 'should load BoldEngine', () => {
  24. expect( editor.plugins.get( BoldEngine ) ).to.be.instanceOf( BoldEngine );
  25. } );
  26. } );