From ea7e2c4570047c7844fe142e5a5a12a876fb71b9 Mon Sep 17 00:00:00 2001
From: fredck
Date: Fri, 13 Mar 2020 17:35:56 +0100
Subject: [PATCH] Changed tests in preparation for a new merge that will hit
recent restrictions imposed by husk.
---
tests/gfmdataprocessor/escaping.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/gfmdataprocessor/escaping.js b/tests/gfmdataprocessor/escaping.js
index 5811fd7..914958a 100644
--- a/tests/gfmdataprocessor/escaping.js
+++ b/tests/gfmdataprocessor/escaping.js
@@ -5,7 +5,7 @@
import MarkdownDataProcessor from '../../src/gfmdataprocessor';
import { stringify } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
-import { testDataProcessor as test } from '../../tests/_utils/utils';
+import { testDataProcessor } from '../../tests/_utils/utils';
const testCases = {
'backslash': { test: '\\\\', result: '\\' },
@@ -75,19 +75,19 @@ describe( 'GFMDataProcessor', () => {
// back to entities when outputting markdown.
it( 'should escape <', () => {
- test( '\\<', '<
' );
+ testDataProcessor( '\\<', '<
' );
} );
it( 'should escape HTML as text', () => {
- test( '\\Test\\
', 'Test
' );
+ testDataProcessor( '\\Test\\
', 'Test
' );
} );
it( 'should not escape \\< inside inline code', () => {
- test( '`\\<`', '\\<
' );
+ testDataProcessor( '`\\<`', '\\<
' );
} );
it( 'should not touch escape-like HTML inside code blocks', () => {
- test(
+ testDataProcessor(
'```\n' +
'\\Test\\
\n' +
'```',
@@ -98,7 +98,7 @@ describe( 'GFMDataProcessor', () => {
// Necessary test as we're overriding Turndown's escape(). Just to be sure.
it( 'should still escape markdown characters', () => {
- test( '\\* \\_', '* _
' );
+ testDataProcessor( '\\* \\_', '* _
' );
} );
} );
} );