aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Van de Gejuchte <anthonyvdgent@gmail.com>2016-05-03 17:41:40 +0200
committerRichard van Velzen <rvanvelzen@experty.com>2016-05-04 20:05:51 +0200
commit6641dcafb60091f0f944fcd5269ca67cb66ada2a (patch)
tree3abdaeabeda3ed9a3b71c07d7100b9adb02b1eff
parentd2945744f2dd569f4390d3bf3065e8a4e71fbf47 (diff)
downloadtracifyjs-6641dcafb60091f0f944fcd5269ca67cb66ada2a.tar.gz
tracifyjs-6641dcafb60091f0f944fcd5269ca67cb66ada2a.zip
Fix regression causing tests to fail on windows
-rwxr-xr-xtest/run-tests.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/run-tests.js b/test/run-tests.js
index 763575aa..0a249b9f 100755
--- a/test/run-tests.js
+++ b/test/run-tests.js
@@ -132,8 +132,10 @@ function run_compress_tests() {
beautify: false,
quote_style: 2, // force double quote to match JSON
});
+ warnings_emitted = warnings_emitted.map(function(input) {
+ return input.split(process.cwd() + path.sep).join("").split(path.sep).join("/");
+ });
var actual_warnings = JSON.stringify(warnings_emitted);
- actual_warnings = actual_warnings.split(process.cwd() + "/").join("");
if (expected_warnings != actual_warnings) {
log("!!! failed\n---INPUT---\n{input}\n---EXPECTED WARNINGS---\n{expected_warnings}\n---ACTUAL WARNINGS---\n{actual_warnings}\n\n", {
input: input_code,