linkform.js 804 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* bender-tags: ui, form */
  6. import LinkForm from '/ckeditor5/link/ui/linkform.js';
  7. import LinkFormView from '/ckeditor5/link/ui/linkformview.js';
  8. import Form from '/ckeditor5/ui/form/form.js';
  9. import Model from '/ckeditor5/ui/model.js';
  10. describe( 'LinkForm', () => {
  11. let linkForm, view;
  12. beforeEach( () => {
  13. view = new LinkFormView();
  14. linkForm = new LinkForm( new Model(), view );
  15. } );
  16. describe( 'constructor', () => {
  17. it( 'should extend Form class', () => {
  18. expect( linkForm ).to.instanceof( Form );
  19. } );
  20. it( 'should create empty "actions" collection', () => {
  21. expect( linkForm.collections.get( 'actions' ) ).to.have.length( 0 );
  22. } );
  23. } );
  24. } );