Skip to content

Commit

Permalink
improve test for #3023 (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed Mar 29, 2018
1 parent 82ae95c commit 9f9db50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/mocha/sourcemaps.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 9f9db50

Please sign in to comment.