8
0

strikethrough.js 634 B

1234567891011121314151617181920212223242526
  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 { testDataProcessor } from '../_utils/utils';
  6. describe( 'GFMDataProcessor', () => {
  7. describe( 'Strikethrough', () => {
  8. it( 'should process strikethrough text', () => {
  9. testDataProcessor(
  10. '~deleted~',
  11. '<p><del>deleted</del></p>'
  12. );
  13. } );
  14. it( 'should process strikethrough inside text', () => {
  15. testDataProcessor(
  16. 'This is ~deleted content~.',
  17. '<p>This is <del>deleted content</del>.</p>'
  18. );
  19. } );
  20. } );
  21. } );