8
0

dataprocessor.js 833 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. import DataProcessor from '/ckeditor5/core/dataprocessor/dataprocessor.js';
  7. describe( 'DataProcessor', () => {
  8. const config = {
  9. option: 'test'
  10. };
  11. const dataProcessor = new DataProcessor( config );
  12. describe( 'constructor', () => {
  13. it( 'should set the `config` property', () => {
  14. expect( dataProcessor ).to.have.property( 'config' );
  15. expect( dataProcessor.config.get( 'option' ) ).to.equal( 'test' );
  16. } );
  17. } );
  18. describe( 'toData', () => {
  19. it( 'should be defined', () => {
  20. expect( dataProcessor.toData ).to.be.function;
  21. } );
  22. } );
  23. describe( 'toDom', () => {
  24. it( 'should be defined', () => {
  25. expect( dataProcessor.toDom ).to.be.function;
  26. } );
  27. } );
  28. } );