History

style workspace filesystem assertions

Cursor Agent committed 3 months ago

Commit ea7294b1 parent 51f34031 file · +2 −6Browse files

Showing the changes to apps/server/src/workspace/WorkspaceFileSystem.test.ts (1 of 1 file). Show all

Unified · Split

apps/server/src/workspace/WorkspaceFileSystem.test.ts+2−6
@@ -240,9 +240,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 239 unmodified lines
240 yield* writeTextFile(cwd, "src/existing.ts", "export {};\n");240 yield* writeTextFile(cwd, "src/existing.ts", "export {};\n");
241 241
242 const beforeWrite = yield* workspaceEntries.list({ cwd });242 const beforeWrite = yield* workspaceEntries.list({ cwd });
243 assert.isFalse(243 assert.isFalse(beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
244 beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
245 );
246 244
247 yield* workspaceFileSystem.writeFile({245 yield* workspaceFileSystem.writeFile({
248 cwd,246 cwd,
@@ -251,9 +249,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 2 unmodified lines
251 });249 });
252 250
253 const afterWrite = yield* workspaceEntries.list({ cwd });251 const afterWrite = yield* workspaceEntries.list({ cwd });
254 assert.isTrue(252 assert.isTrue(afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
255 afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
256 );
257 assert.isFalse(afterWrite.truncated);253 assert.isFalse(afterWrite.truncated);
258 }),254 }),
259 );255 );