markdown.js 778 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import Markdown from '../src/markdown';
  6. import GFMDataProcessor from '../src/gfmdataprocessor';
  7. import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
  8. describe( 'Markdown', () => {
  9. it( 'has proper name', () => {
  10. expect( Markdown.pluginName ).to.equal( 'Markdown' );
  11. } );
  12. it( 'should set editor.data.processor', () => {
  13. return ClassicTestEditor
  14. .create( '', {
  15. plugins: [ Markdown ]
  16. } )
  17. .then( editor => {
  18. expect( editor.data.processor ).to.be.an.instanceof( GFMDataProcessor );
  19. editor.destroy(); // Tests cleanup.
  20. } );
  21. } );
  22. } );