Skip to content

Commit

Permalink
Merge pull request #36 from romario333/master
Browse files Browse the repository at this point in the history
Fix error code 127 on Windows
  • Loading branch information
metaskills committed Jan 17, 2013
2 parents 2f44275 + 563ebb1 commit 5ac36f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/mocha-phantomjs
Expand Up @@ -85,6 +85,9 @@ var spawnArgs = [script, page, reporter, config];
var phantomjs;
for (var i=0; i < module.paths.length; i++) {
var bin = path.join(module.paths[i], '.bin/phantomjs');
if (process.platform === 'win32') {
bin += '.cmd';
}
if (exists(bin)) {
phantomjs = spawn(bin, spawnArgs);
break;
Expand Down

0 comments on commit 5ac36f4

Please sign in to comment.