From: Alex Lam S.L Date: Thu, 29 Mar 2018 14:36:40 +0000 (+0900) Subject: improve test for #3023 (#3031) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9f9db504d72dad5097217129e6c0849c334a32ca;p=UglifyJS.git improve test for #3023 (#3031) --- diff --git a/test/mocha/sourcemaps.js b/test/mocha/sourcemaps.js index 7f4acb78..a1a8e617 100644 --- a/test/mocha/sourcemaps.js +++ b/test/mocha/sourcemaps.js @@ -41,9 +41,11 @@ describe("sourcemaps", function() { "obj.wat([]);", ].join("\n"), { sourceMap: true, + toplevel: true, }); if (result.error) throw result.error; - assert.strictEqual(result.map, '{"version":3,"sources":["0"],"names":["obj","wat"],"mappings":"AAAA,IAAIA,IAAM,GACVA,IAAIC,IAAI"}'); + assert.strictEqual(result.code, "({}).wat([]);"); + assert.strictEqual(result.map, '{"version":3,"sources":["0"],"names":["wat"],"mappings":"CAAU,IACNA,IAAI"}'); }); describe("inSourceMap", function() {