diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-03-29 23:36:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 23:36:40 +0900 |
commit | 9f9db504d72dad5097217129e6c0849c334a32ca (patch) | |
tree | 751bb392c353e6701a089e9856ad8ff44f1dcf83 /test/mocha | |
parent | 82ae95c334fdcc0a079c1dd935cd43cc97b00938 (diff) | |
download | tracifyjs-9f9db504d72dad5097217129e6c0849c334a32ca.tar.gz tracifyjs-9f9db504d72dad5097217129e6c0849c334a32ca.zip |
improve test for #3023 (#3031)
Diffstat (limited to 'test/mocha')
-rw-r--r-- | test/mocha/sourcemaps.js | 4 |
1 files changed, 3 insertions, 1 deletions
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() { |