/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import { testDataProcessor } from '../_utils/utils'; describe( 'GFMDataProcessor', () => { describe( 'tabs', () => { it( 'should process list item with tabs', () => { testDataProcessor( '+ this is a list item indented with tabs', // GitHub will render it as (notice two spaces at the beginning of the list item): // '', // After converting back list will be normalized to *. '* this is a list item indented with tabs' ); } ); it( 'should process list item with spaces', () => { testDataProcessor( '+ this is a list item indented with spaces', // GitHub will render it as (notice two spaces at the beginning of the list item): // '', // After converting back list will be normalized to *. '* this is a list item indented with spaces' ); } ); it( 'should process code block indented by tab', () => { testDataProcessor( ' this code block is indented by one tab', '
this code block is indented by one tab
', // After converting back code block will be normalized to ``` representation. '```\n' + 'this code block is indented by one tab\n' + '```' ); } ); it( 'should process code block indented by two tabs', () => { testDataProcessor( ' this code block is indented by two tabs', '
    this code block is indented by two tabs
', // After converting back code block will be normalized to ``` representation. '```\n' + ' this code block is indented by two tabs\n' + '```' ); } ); it( 'should process list items indented with tabs as code block', () => { testDataProcessor( ' + list item\n' + ' next line', '
+    list item\n' +
				'next line
', // After converting back code block will be normalized to ``` representation. '```\n' + '+ list item\n' + 'next line\n' + '```' ); } ); } ); } );