Skip to content

Commit 2439c80

Browse files
committed
style: format the safe-write JSON spec the way the repository formatter wants it
1 parent 97f2f4d commit 2439c80

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/utils/__tests__/safeWriteJson.test.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,11 @@ describe("safeWriteJson", () => {
939939
await fsPromisesActuals.writeFile!(target, JSON.stringify({ own: true }))
940940
// Pinning must not reject the ordinary case: every ancestor keeps the identity the walk
941941
// recorded, so the publication proceeds.
942-
vi.spyOn(fs, "lstat").mockResolvedValue(
943-
{ isSymbolicLink: () => false, dev: 1n, ino: 1n } as unknown as fsSyncActual.BigIntStats,
944-
)
942+
vi.spyOn(fs, "lstat").mockResolvedValue({
943+
isSymbolicLink: () => false,
944+
dev: 1n,
945+
ino: 1n,
946+
} as unknown as fsSyncActual.BigIntStats)
945947

946948
await safeWriteJson(target, { written: true }, { refuseSymlinkTarget: true })
947949

0 commit comments

Comments
 (0)