style(reference-source): format loader binding changes

This commit is contained in:
morluto
2026-10-11 10:20:04 +08:00
parent 824ecf109d
commit 83e52559b8
2 changed files with 4 additions and 7 deletions
@@ -112,9 +112,7 @@ it("resolves require calls by lexical binding and source mode", async () => {
result.value.relationships
.filter(({ kind }) => kind === "requires")
.map(({ from_path, to }) => [from_path, to])
.sort((left, right) =>
(left[0] ?? "").localeCompare(right[0] ?? ""),
),
.sort((left, right) => (left[0] ?? "").localeCompare(right[0] ?? "")),
).toEqual([
["create-require-esm.mjs", "loaded.cjs"],
["nested.cjs", "loaded.cjs"],