We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf77710 + c244311 commit b9cd72bCopy full SHA for b9cd72b
intelli-espower-loader.js
@@ -27,5 +27,5 @@ assert.equal(typeof directories.test, "string", 'You should setting `directories
27
var testDirectory = directories.test;
28
require('espower-loader')({
29
cwd: process.cwd(),
30
- pattern: testDirectory + "**" + pather.sep + "*.js"
+ pattern: testDirectory + ((testDirectory.lastIndexOf(pather.sep, 0) === 0) ? '' : pather.sep) + "**" + pather.sep + "*.js"
31
});
0 commit comments