improve --reduce-test (#5763)

This commit is contained in:
Alex Lam S.L
2022-12-13 04:07:15 +02:00
committed by GitHub
parent 797184f587
commit f2b6f1def0
3 changed files with 17 additions and 21 deletions

View File

@@ -236,9 +236,9 @@ describe("test/reduce.js", function() {
});
it("Should report trailing whitespace difference in stringified format", function() {
var code = [
"for (var a in (1 - .8).toString()) {",
"[].forEach.call((1 - .8).toString(), function() {",
" console.log();",
"}",
"});",
].join("\n");
var result = reduce_test(code, {
compress: {