Skip to content

Commit bb362c7

Browse files
committed
test(cli): require force removal records
1 parent 2920b99 commit bb362c7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/server/src/bin.test.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,12 @@ it.layer(NodeServices.layer)("bin cli parsing", (it) => {
514514
]);
515515
const afterRemove = yield* readPersistedSnapshot(baseDir);
516516
assert.isTrue(
517-
afterRemove.projects.find((candidate) => candidate.id === project!.id)?.deletedAt !== null,
517+
(afterRemove.projects.find((candidate) => candidate.id === project!.id)?.deletedAt ??
518+
null) !== null,
518519
);
519520
assert.isTrue(
520-
afterRemove.threads.find((thread) => thread.id === "thread-cli-force-remove")?.deletedAt !==
521-
null,
521+
(afterRemove.threads.find((thread) => thread.id === "thread-cli-force-remove")?.deletedAt ??
522+
null) !== null,
522523
);
523524
}),
524525
);

0 commit comments

Comments
 (0)