aboutsummaryrefslogtreecommitdiff
path: root/test/mocha
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-07-02 01:05:14 +0800
committerGitHub <noreply@github.com>2017-07-02 01:05:14 +0800
commitd40950b741d67bafc91a102ce2c6e862af46fd11 (patch)
tree491155594137356177a2acedb3fd0287fcf193b3 /test/mocha
parent7659ea1d2edd7603bd355eb849bd5dd62c3350c7 (diff)
downloadtracifyjs-d40950b741d67bafc91a102ce2c6e862af46fd11.tar.gz
tracifyjs-d40950b741d67bafc91a102ce2c6e862af46fd11.zip
improve `inline` efficiency (#2188)
... by teaching `collapse_vars` some new tricks. fixes #2187
Diffstat (limited to 'test/mocha')
-rw-r--r--test/mocha/glob.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mocha/glob.js b/test/mocha/glob.js
index 8567ecb3..eb5d477d 100644
--- a/test/mocha/glob.js
+++ b/test/mocha/glob.js
@@ -26,12 +26,12 @@ describe("bin/uglifyjs with input file globs", function() {
});
});
it("bin/uglifyjs with multiple input file globs.", function(done) {
- var command = uglifyjscmd + ' "test/input/issue-1242/???.es5" "test/input/issue-1242/*.js" -mc toplevel';
+ var command = uglifyjscmd + ' "test/input/issue-1242/???.es5" "test/input/issue-1242/*.js" -mc toplevel,passes=2';
exec(command, function(err, stdout) {
if (err) throw err;
- assert.strictEqual(stdout, 'var print=console.log.bind(console);print("qux",9,6),print("Foo:",2*11);\n');
+ assert.strictEqual(stdout, 'var print=console.log.bind(console);print("qux",9,6),print("Foo:",22);\n');
done();
});
});