From 354fec8a9c3c8540d7e964ecbfcb38deaae86a3e Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 4 May 2019 20:25:52 +0800 Subject: make `enclose` & `wrap` work with `sourceMap` (#3396) fixes #3313 --- test/mocha/minify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/mocha/minify.js') diff --git a/test/mocha/minify.js b/test/mocha/minify.js index d11f40ff..786edd80 100644 --- a/test/mocha/minify.js +++ b/test/mocha/minify.js @@ -365,7 +365,7 @@ describe("minify", function() { wrap: 'exports', }); if (result.error) throw result.error; - assert.strictEqual(result.code, '(function(window,undefined){(function(exports){function enclose(){console.log("test enclose")}enclose()})(typeof exports=="undefined"?exports={}:exports)})(window);'); + assert.strictEqual(result.code, '(function(exports){(function(window,undefined){function enclose(){console.log("test enclose")}enclose()})(window)})(typeof exports=="undefined"?exports={}:exports);'); }); }); }); -- cgit v1.2.3