Przeglądaj źródła

Code style: Switched to ESLint.

Kamil Piechaczek 8 lat temu
rodzic
commit
b0bc29f192

+ 4 - 4
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/escaping.js

@@ -32,23 +32,23 @@ describe( 'GFMDataProcessor', () => {
 
 	describe( 'escaping', () => {
 		describe( 'toView', () => {
-			for ( let key in testCases ) {
+			for ( const key in testCases ) {
 				const test = testCases[ key ].test;
 				const result = testCases[ key ].result;
 
-				it( `should escape ${key}`, () => {
+				it( `should escape ${ key }`, () => {
 					const documentFragment = dataProcessor.toView( test );
 
 					expect( stringify( documentFragment ) ).to.equal( `<p>${ result }</p>` );
 				} );
 
-				it( `should not escape ${key} in code blocks`, () => {
+				it( `should not escape ${ key } in code blocks`, () => {
 					const documentFragment = dataProcessor.toView( `	${ test }` );
 
 					expect( stringify( documentFragment ) ).to.equal( `<pre><code>${ test }</code></pre>` );
 				} );
 
-				it( `should not escape ${key} in code spans`, () => {
+				it( `should not escape ${ key } in code spans`, () => {
 					const documentFragment = dataProcessor.toView( '`' + test + '`' );
 
 					expect( stringify( documentFragment ) ).to.equal( `<p><code>${ test }</code></p>` );

+ 1 - 1
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/lists.js

@@ -131,7 +131,7 @@ describe( 'GFMDataProcessor', () => {
 				'\n' +
 				'-	item 2\n' +
 				'\n' +
-				'-	item 3' ,
+				'-	item 3',
 
 				'<ul>' +
 					'<li>' +

+ 1 - 1
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/manual/gfmdataprocessor.js

@@ -21,7 +21,7 @@ convertToView();
 function convertToView() {
 	const markdown = markdownTextArea.value;
 
-	viewTextArea.value =  stringify( dataProcessor.toView( markdown ) );
+	viewTextArea.value = stringify( dataProcessor.toView( markdown ) );
 }
 
 function convertToMarkdown() {

+ 2 - 2
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/paragraphs.js

@@ -37,7 +37,7 @@ describe( 'GFMDataProcessor', () => {
 				// GitHub is rendering as:
 				// <p>single line</p>
 				//
-				//<h1>header</h1>
+				// <h1>header</h1>
 				'<p>single line</p><h1>header</h1>',
 
 				// To-markdown always put 2 empty lines after paragraph.
@@ -55,7 +55,7 @@ describe( 'GFMDataProcessor', () => {
 				// GitHub is rendering as:
 				// <p>single line</p>
 				//
-				//<h1>header</h1>
+				// <h1>header</h1>
 				'<p>single line</p><h1>header</h1>',
 
 				// To-markdown always put 2 empty lines after paragraph and normalize header to #.