plugin.js 606 B

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