8
0

plugin.js 483 B

123456789101112131415161718192021
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import Plugin from '/ckeditor5/plugin.js';
  6. import Editor from '/ckeditor5/editor/editor.js';
  7. let editor;
  8. before( () => {
  9. editor = new Editor();
  10. } );
  11. describe( 'constructor', () => {
  12. it( 'should set the `editor` property', () => {
  13. let plugin = new Plugin( editor );
  14. expect( plugin ).to.have.property( 'editor' ).to.equal( editor );
  15. } );
  16. } );