diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-05-04 20:25:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-04 20:25:52 +0800 |
commit | 354fec8a9c3c8540d7e964ecbfcb38deaae86a3e (patch) | |
tree | fed20f61e163195ad4d8eb632e79212e6dcb5587 /test/mocha/minify.js | |
parent | 11cdab745d29313a4e1799c65d13f7d6d5a45938 (diff) | |
download | tracifyjs-354fec8a9c3c8540d7e964ecbfcb38deaae86a3e.tar.gz tracifyjs-354fec8a9c3c8540d7e964ecbfcb38deaae86a3e.zip |
make `enclose` & `wrap` work with `sourceMap` (#3396)
fixes #3313
Diffstat (limited to 'test/mocha/minify.js')
-rw-r--r-- | test/mocha/minify.js | 2 |
1 files changed, 1 insertions, 1 deletions
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);'); }); }); }); |