controllercollection.js 613 B

123456789101112131415161718192021222324
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* bender-tags: core, ui */
  6. 'use strict';
  7. const modules = bender.amd.require( 'ckeditor', 'ui/controllercollection' );
  8. bender.tools.createSinonSandbox();
  9. describe( 'ControllerCollection', () => {
  10. describe( 'constructor', () => {
  11. it( 'should throw when no name is passed', () => {
  12. const ControllerCollection = modules[ 'ui/controllercollection' ];
  13. expect( () => {
  14. new ControllerCollection();
  15. } ).to.throw( /^ui-controllercollection-no-name/ );
  16. } );
  17. } );
  18. } );