aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/comment_before_constant.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocha/comment_before_constant.js')
-rw-r--r--test/mocha/comment_before_constant.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/mocha/comment_before_constant.js b/test/mocha/comment_before_constant.js
index eaa8691c..9b69e078 100644
--- a/test/mocha/comment_before_constant.js
+++ b/test/mocha/comment_before_constant.js
@@ -6,9 +6,7 @@ describe("comment before constant", function() {
it("Should test comment before constant is retained and output after mangle.", function() {
var result = Uglify.minify(js, {
- fromString: true,
compress: { collapse_vars: false, reduce_vars: false },
- mangle: {},
output: { comments: true },
});
assert.strictEqual(result.code, 'function f(){/*c1*/var/*c2*/n=/*c3*/!1;return n}');
@@ -16,12 +14,9 @@ describe("comment before constant", function() {
it("Should test code works when comments disabled.", function() {
var result = Uglify.minify(js, {
- fromString: true,
compress: { collapse_vars: false, reduce_vars: false },
- mangle: {},
output: { comments: false },
});
assert.strictEqual(result.code, 'function f(){var n=!1;return n}');
});
});
-