Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tim committed Jun 18, 2024
1 parent a4285bc commit d111ca8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,11 @@ describe("Babel", function () {

it("adds the sourceFilename to location", function () {
const code = "const a = 1;";
const filename = "testfile.js"
const ast = recast.parse(code, {...parseOptions, sourceFileName: filename});
const filename = "testfile.js";
const ast = recast.parse(code, {
...parseOptions,
sourceFileName: filename,
});

assert.strictEqual(ast.program.body[0].loc.filename, filename);
});
Expand Down

0 comments on commit d111ca8

Please sign in to comment.