style workspace filesystem assertions

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-07-16 16:07:29 +00:00
1 parent 51f3403bc5
commit ea7294bea7
1 file changed
+2 -6
@@ -240,9 +240,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i
yield* writeTextFile(cwd, "src/existing.ts", "export {};\n");
const beforeWrite = yield* workspaceEntries.list({ cwd });
assert.isFalse(
beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
);
assert.isFalse(beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
yield* workspaceFileSystem.writeFile({
cwd,
@@ -251,9 +249,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i
});
const afterWrite = yield* workspaceEntries.list({ cwd });
assert.isTrue(
afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
);
assert.isTrue(afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
assert.isFalse(afterWrite.truncated);
}),
);