Explorar el Código

Oh those sneaky path seps on Windows. Fixes #64.

Piotrek Koszuliński hace 10 años
padre
commit
70d28c5db4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dev/tasks/gulp/build/utils.js

+ 1 - 1
dev/tasks/gulp/build/utils.js

@@ -303,7 +303,7 @@ require( [ 'tests' ], bender.defer(), function( err ) {
 	 */
 	isTestFile( file ) {
 		// TODO this should be based on bender configuration (config.tests.*.paths).
-		if ( !file.relative.startsWith( 'tests/' ) ) {
+		if ( !file.relative.startsWith( 'tests' + path.sep ) ) {
 			return false;
 		}