Skip to content

Commit c244311

Browse files
committed
It's nice to work reasonably even if package.directories.test does not end with path separator.
1 parent cf77710 commit c244311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intelli-espower-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ assert.equal(typeof directories.test, "string", 'You should setting `directories
2727
var testDirectory = directories.test;
2828
require('espower-loader')({
2929
cwd: process.cwd(),
30-
pattern: testDirectory + "**" + pather.sep + "*.js"
30+
pattern: testDirectory + ((testDirectory.lastIndexOf(pather.sep, 0) === 0) ? '' : pather.sep) + "**" + pather.sep + "*.js"
3131
});

0 commit comments

Comments
 (0)