diff options
Diffstat (limited to 'test/mocha/minify.js')
-rw-r--r-- | test/mocha/minify.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mocha/minify.js b/test/mocha/minify.js index 2cc800fe..51c46b28 100644 --- a/test/mocha/minify.js +++ b/test/mocha/minify.js @@ -155,7 +155,7 @@ describe("minify", function() { assert.strictEqual(code, "// comment1 comment2\nbar();"); }); it("should not drop #__PURE__ hint if function is retained", function() { - var result = Uglify.minify("var a = /*#__PURE__*/(function(){return 1})();", { + var result = Uglify.minify("var a = /*#__PURE__*/(function(){ foo(); })();", { fromString: true, output: { comments: "all", @@ -163,7 +163,7 @@ describe("minify", function() { } }); var code = result.code; - assert.strictEqual(code, "var a=/*#__PURE__*/function(){return 1}();"); + assert.strictEqual(code, "var a=/*#__PURE__*/function(){foo()}();"); }) }); |