summaryrefslogtreecommitdiff
path: root/test/spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec.js')
-rw-r--r--test/spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/spec.js b/test/spec.js
index 2b1f9b33..bc3df3dd 100644
--- a/test/spec.js
+++ b/test/spec.js
@@ -46,7 +46,7 @@ var quiet = false;
run(arguments[0]);
function run(inPath) {
- var lastSlash = inPath.lastIndexOf('/');
+ var lastSlash = Math.max(inPath.lastIndexOf('/'), inPath.lastIndexOf('\\'));
var inDir = lastSlash == -1 ? '.' : inPath.slice(0, lastSlash);
var data = read(inPath);
var jsonData = JSON.parse(data);