浏览代码

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

Piotrek Koszuliński 10 年之前
父节点
当前提交
70d28c5db4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 		}