8
0
Просмотр исходного кода

Fixed builder tests that were not passing on Windows machines.

Szymon Kupś 10 лет назад
Родитель
Сommit
0b5e100f61
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      dev/tests/build/utils.js

+ 8 - 8
dev/tests/build/utils.js

@@ -290,14 +290,14 @@ describe( 'build-utils', () => {
 
 			rename.pipe(
 				utils.noop( ( data ) => {
-					expect( data.path ).to.equal( 'ckeditor5/core/foo/file.js' );
+					expect( data.path ).to.equal( path.normalize( 'ckeditor5/core/foo/file.js' ) );
 					done();
 				} )
 			);
 
 			rename.write( new Vinyl( {
 				cwd: './',
-				path: 'ckeditor5-core/src/foo/file.js',
+				path: path.normalize( 'ckeditor5-core/src/foo/file.js' ),
 				contents: new Buffer( '' )
 			} ) );
 
@@ -309,14 +309,14 @@ describe( 'build-utils', () => {
 
 			rename.pipe(
 				utils.noop( ( data ) => {
-					expect( data.path ).to.equal( 'tests/core/foo/file.js' );
+					expect( data.path ).to.equal( path.normalize( 'tests/core/foo/file.js' ) );
 					done();
 				} )
 			);
 
 			rename.write( new Vinyl( {
 				cwd: './',
-				path: 'ckeditor5-core/tests/foo/file.js',
+				path: path.normalize( 'ckeditor5-core/tests/foo/file.js' ),
 				contents: new Buffer( '' )
 			} ) );
 
@@ -354,14 +354,14 @@ describe( 'build-utils', () => {
 
 			rename.pipe(
 				utils.noop( ( data ) => {
-					expect( data.path ).to.equal( 'ckeditor5/foo/file.js' );
+					expect( data.path ).to.equal( path.normalize( 'ckeditor5/foo/file.js' ) );
 					done();
 				} )
 			);
 
 			rename.write( new Vinyl( {
 				cwd: './',
-				path: 'src/foo/file.js',
+				path: path.normalize( 'src/foo/file.js' ),
 				contents: new Buffer( '' )
 			} ) );
 
@@ -373,14 +373,14 @@ describe( 'build-utils', () => {
 
 			rename.pipe(
 				utils.noop( ( data ) => {
-					expect( data.path ).to.equal( 'tests/foo/file.js' );
+					expect( data.path ).to.equal( path.normalize( 'tests/foo/file.js' ) );
 					done();
 				} )
 			);
 
 			rename.write( new Vinyl( {
 				cwd: './',
-				path: 'tests/foo/file.js',
+				path: path.normalize( 'tests/foo/file.js' ),
 				contents: new Buffer( '' )
 			} ) );