8
0

plugin.js 563 B

1234567891011121314151617181920212223
  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 Plugin from '/ckeditor5/core/plugin.js';
  7. import Editor from '/ckeditor5/core/editor.js';
  8. let editor;
  9. before( () => {
  10. editor = new Editor( document.body.appendChild( document.createElement( 'div' ) ) );
  11. } );
  12. describe( 'constructor', () => {
  13. it( 'should set the `editor` property', () => {
  14. let plugin = new Plugin( editor );
  15. expect( plugin ).to.have.property( 'editor' ).to.equal( editor );
  16. } );
  17. } );