aboutsummaryrefslogtreecommitdiff
path: root/test/mocha
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-08-23 06:03:39 +0800
committerGitHub <noreply@github.com>2018-08-23 06:03:39 +0800
commit694ca5d04590fc22001f7a1c9cc185198f32248f (patch)
tree278e456909f7c5bcb8783e921129838b6c866819 /test/mocha
parent57fb58b263677d8667eadc94634c2018934a0f52 (diff)
downloadtracifyjs-694ca5d04590fc22001f7a1c9cc185198f32248f.tar.gz
tracifyjs-694ca5d04590fc22001f7a1c9cc185198f32248f.zip
fix corner case in `unused` (#3234)
fixes #3233
Diffstat (limited to 'test/mocha')
-rw-r--r--test/mocha/cli.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 56f6b184..1e27f64e 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -651,7 +651,7 @@ describe("bin/uglifyjs", function() {
});
});
it("Should work with explicit --no-rename", function(done) {
- var command = uglifyjscmd + " test/input/rename/input.js -mc --no-rename";
+ var command = uglifyjscmd + " test/input/rename/input.js -mc passes=2 --no-rename";
exec(command, function(err, stdout, stderr) {
if (err) throw err;
assert.strictEqual(stdout, "function f(n){return function(n){return n}(n)}\n");
@@ -659,7 +659,7 @@ describe("bin/uglifyjs", function() {
});
});
it("Should work with implicit --rename", function(done) {
- var command = uglifyjscmd + " test/input/rename/input.js -mc";
+ var command = uglifyjscmd + " test/input/rename/input.js -mc passes=2";
exec(command, function(err, stdout, stderr) {
if (err) throw err;
assert.strictEqual(stdout, "function f(n){return n}\n");
@@ -667,7 +667,7 @@ describe("bin/uglifyjs", function() {
});
});
it("Should work with implicit --no-rename", function(done) {
- var command = uglifyjscmd + " test/input/rename/input.js -c";
+ var command = uglifyjscmd + " test/input/rename/input.js -c passes=2";
exec(command, function(err, stdout, stderr) {
if (err) throw err;
assert.strictEqual(stdout, "function f(x){return function(x){return x}(x)}\n");