浏览代码

Minor imporovments to running PFO tests.

Maciej Gołaszewski 6 年之前
父节点
当前提交
f2b40cff53
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      packages/ckeditor5-paste-from-office/tests/_utils/utils.js

+ 6 - 2
packages/ckeditor5-paste-from-office/tests/_utils/utils.js

@@ -152,7 +152,9 @@ function generateNormalizationTests( title, fixtures, editorConfig, skip ) {
 		} );
 
 		for ( const name of Object.keys( fixtures.input ) ) {
-			( skip.indexOf( name ) !== -1 ? it.skip : it )( name, () => {
+			const testRunner = skip.indexOf( name ) !== -1 ? it.skip : it;
+
+			testRunner( name, () => {
 				// Simulate data from Clipboard event
 				const clipboardPlugin = editor.plugins.get( 'Clipboard' );
 				const content = htmlDataProcessor.toView( normalizeClipboardData( fixtures.input[ name ] ) );
@@ -228,7 +230,9 @@ function generateIntegrationTests( title, fixtures, editorConfig, skip ) {
 		} );
 
 		for ( const name of Object.keys( fixtures.input ) ) {
-			( skip.indexOf( name ) !== -1 ? it.skip : it )( name, () => {
+			const testRunner = skip.indexOf( name ) !== -1 ? it.skip : it;
+
+			testRunner( name, () => {
 				data.input = fixtures.input[ name ];
 				data.model = fixtures.model[ name ];
 				expectModel( data, editor, fixtures.inputRtf && fixtures.inputRtf[ name ] );