Index: test_runner.js |
=================================================================== |
--- a/test_runner.js |
+++ b/test_runner.js |
@@ -70,16 +70,16 @@ if (browserFiles.length) |
); |
browserFiles.unshift(nodeunitPath); |
let urls = browserFiles.map(file => |
{ |
return url.format({ |
protocol: "file", |
slashes: "true", |
- pathname: path.resolve(process.cwd, file).split(path.sep).join("/") |
+ pathname: path.resolve(process.cwd(), file).split(path.sep).join("/") |
}); |
}); |
let args = [path.join(__dirname, "browsertests.js")].concat(urls); |
childProcess.execFileSync(phantomjs.path, args, {stdio: "inherit"}); |
} |
if (unitFiles.length) |
nodeunit.reporters.default.run(unitFiles); |