plugin.js 586 B

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