load.js 580 B

1234567891011121314151617181920212223
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import load from '/ckeditor5/load.js';
  6. describe( 'load()', () => {
  7. it( 'loads plugin.js', () => {
  8. return load( 'ckeditor5/plugin.js' )
  9. .then( ( PluginModule ) => {
  10. expect( PluginModule.default ).to.be.a( 'function' );
  11. } );
  12. } );
  13. it( 'loads ckeditor5/editor/editor.js', () => {
  14. return load( 'ckeditor5/editor/editor.js' )
  15. .then( ( EditorModule ) => {
  16. expect( EditorModule.default ).to.be.a( 'function' );
  17. } );
  18. } );
  19. } );