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
240240 yield* writeTextFile(cwd, "src/existing.ts", "export {};\n");
241241
242242 const beforeWrite = yield* workspaceEntries.list({ cwd });
243− assert.isFalse(
244− beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
245− );
243+ assert.isFalse(beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
246244
247245 yield* workspaceFileSystem.writeFile({
248246 cwd,
@@ -251,9 +249,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 2 unmodified lines
251249 });
252250
253251 const afterWrite = yield* workspaceEntries.list({ cwd });
254− assert.isTrue(
255− afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
256− );
252+ assert.isTrue(afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
257253 assert.isFalse(afterWrite.truncated);
258254 }),
259255 );