Browse Source

Fixed builder tests that were not passing on Windows machines.

Szymon Kupś 10 năm trước cách đây
mục cha
commit
0b5e100f61
1 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 8 8
      dev/tests/build/utils.js

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

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