listseparatorview.js 673 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 ListSeparatorView from '../../src/list/listseparatorview';
  6. describe( 'ListSeparatorView', () => {
  7. let view;
  8. beforeEach( () => {
  9. view = new ListSeparatorView();
  10. view.render();
  11. } );
  12. describe( 'template', () => {
  13. it( 'should create element from template', () => {
  14. expect( view.element.tagName ).to.equal( 'LI' );
  15. expect( view.element.classList.contains( 'ck' ) ).to.true;
  16. expect( view.element.classList.contains( 'ck-list__separator' ) ).to.true;
  17. } );
  18. } );
  19. } );