8
0

toolbarseparatorview.js 693 B

123456789101112131415161718192021222324
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import ToolbarSeparatorView from '../../src/toolbar/toolbarseparatorview';
  6. describe( 'ToolbarSeparatorView', () => {
  7. let view;
  8. beforeEach( () => {
  9. view = new ToolbarSeparatorView();
  10. view.render();
  11. } );
  12. describe( 'template', () => {
  13. it( 'should create element from template', () => {
  14. expect( view.element.tagName ).to.equal( 'SPAN' );
  15. expect( view.element.classList.contains( 'ck' ) ).to.true;
  16. expect( view.element.classList.contains( 'ck-toolbar__separator' ) ).to.true;
  17. } );
  18. } );
  19. } );