Fix regression causing tests to fail on windows
This commit is contained in:
committed by
Richard van Velzen
parent
d2945744f2
commit
6641dcafb6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user