Skip to content

Commit

Permalink
Parse input and output to ensure they are identical?
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-y committed Aug 30, 2024
1 parent e5c84b0 commit 6dd506e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/semantics/__tests__/modules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { List } from "../../syntax-objects/list.js";
describe("modules", () => {
it("should register modules", () => {
const result = registerModules(input);
assert.deepStrictEqual(JSON.parse(JSON.stringify(result.toJSON())), output);
assert.deepStrictEqual(
JSON.parse(JSON.stringify(result.toJSON())),
JSON.parse(JSON.stringify(output))
);
});
});

Expand Down

0 comments on commit 6dd506e

Please sign in to comment.