aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/minify.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-02-23 23:51:49 +0800
committerGitHub <noreply@github.com>2018-02-23 23:51:49 +0800
commitf40f5eb228aa576f2555b5aaa20f3a676aaad147 (patch)
tree6a6f176ee0afc1af3a0fc68d49087322a5e289a0 /test/mocha/minify.js
parent604caa09e7181791621db6c96b92cb8ecc7ace24 (diff)
downloadtracifyjs-f40f5eb228aa576f2555b5aaa20f3a676aaad147.tar.gz
tracifyjs-f40f5eb228aa576f2555b5aaa20f3a676aaad147.zip
improve `mangle` (#2948)
Diffstat (limited to 'test/mocha/minify.js')
-rw-r--r--test/mocha/minify.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/mocha/minify.js b/test/mocha/minify.js
index 1b0052a4..02180a59 100644
--- a/test/mocha/minify.js
+++ b/test/mocha/minify.js
@@ -46,10 +46,10 @@ describe("minify", function() {
assert.strictEqual(compressed, [
"function n(n){return 3*n}",
"function r(n){return n/2}",
- "var o=console.log.bind(console);",
- 'function c(n){o("Foo:",2*n)}',
+ "var c=console.log.bind(console);",
+ 'function o(o){c("Foo:",2*o)}',
"var a=n(3),b=r(12);",
- 'o("qux",a,b),c(11);',
+ 'c("qux",a,b),o(11);',
].join(""));
assert.strictEqual(run_code(compressed), run_code(original));
});
@@ -79,10 +79,10 @@ describe("minify", function() {
assert.strictEqual(compressed, [
"function n(n){return 3*n}",
"function r(n){return n/2}",
- "var o=console.log.bind(console);",
- 'function c(n){o("Foo:",2*n)}',
+ "var c=console.log.bind(console);",
+ 'function o(o){c("Foo:",2*o)}',
"var a=n(3),b=r(12);",
- 'o("qux",a,b),c(11);',
+ 'c("qux",a,b),o(11);',
].join(""));
assert.strictEqual(run_code(compressed), run_code(original));
});