load.js 593 B

12345678910111213141516171819202122232425
  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 load from '/ckeditor5/load.js';
  7. describe( 'load()', () => {
  8. it( 'loads ckeditor.js', () => {
  9. return load( 'ckeditor.js' )
  10. .then( ( CKEDITORModule ) => {
  11. expect( CKEDITORModule.default ).to.have.property( 'create' );
  12. } );
  13. } );
  14. it( 'loads ckeditor5/core/editor', () => {
  15. return load( 'ckeditor5/core/editor.js' )
  16. .then( ( EditorModule ) => {
  17. expect( EditorModule.default ).to.be.a( 'function' );
  18. } );
  19. } );
  20. } );