Skip to content

Commit

Permalink
Simplify a test assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Aug 8, 2024
1 parent 9f8fc38 commit 9243f9b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scanModuleCode.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,10 @@ describe("Function `scanModuleCode`.", { concurrency: true }, () => {
});

it("`.jsx` file, JavaScript and JSX syntax.", async () => {
deepStrictEqual(
await scanModuleCode("let a; const b = <div />;", "a.jsx"),
{
imports: {},
exports: new Set(),
},
);
deepStrictEqual(await scanModuleCode("const a = <div />;", "a.jsx"), {
imports: {},
exports: new Set(),
});
});
});

Expand Down

0 comments on commit 9243f9b

Please sign in to comment.