Skip to content

Commit

Permalink
Merge pull request #3 from twada/does-not-end-with-path-separator
Browse files Browse the repository at this point in the history
Work reasonably even if `package.directories.test` does not end with path separator
  • Loading branch information
azu committed Jul 1, 2014
2 parents cf77710 + c244311 commit b9cd72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intelli-espower-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ assert.equal(typeof directories.test, "string", 'You should setting `directories
var testDirectory = directories.test;
require('espower-loader')({
cwd: process.cwd(),
pattern: testDirectory + "**" + pather.sep + "*.js"
pattern: testDirectory + ((testDirectory.lastIndexOf(pather.sep, 0) === 0) ? '' : pather.sep) + "**" + pather.sep + "*.js"
});

0 comments on commit b9cd72b

Please sign in to comment.