Skip to content

Commit

Permalink
tweaking a failing test case: the failure is due to one side of the t…
Browse files Browse the repository at this point in the history
…est outputting `"use strict";;` while the other prints `"use strict";` -- which is less important an issue than the AST content check, hence we move this (failing) test check to the end of the test.
  • Loading branch information
GerHobbelt committed Jul 19, 2019
1 parent e099d84 commit df64196
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ describe("source maps", function() {
console.error('twoStepResult:', twoStepResult.code)
fs.writeFileSync('AST4.json', JSON.stringify(useStrictAst, null, 2));

assert.strictEqual(
oneStepResult.code,
twoStepResult.code
);

var smc1 = new sourceMap.SourceMapConsumer(oneStepResult.map);
var smc2 = new sourceMap.SourceMapConsumer(twoStepResult.map);

Expand All @@ -187,6 +182,11 @@ describe("source maps", function() {
// source instead of the intermediate source.
assert.strictEqual(orig2.source, "original.js");
});

assert.strictEqual(
oneStepResult.code,
twoStepResult.code
);
});

it("should work when a child node becomes null", function() {
Expand Down

0 comments on commit df64196

Please sign in to comment.