Sfoglia il codice sorgente

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

Piotrek Koszuliński 10 anni fa
parent
commit
70d28c5db4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 		}