History

format workspace filesystem tests

Cursor Agent committed 3 months ago

Commit 61bfbce1 parent 217fbf11 file · +3 −10Browse 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+3−10
@@ -206,10 +206,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 205 unmodified lines
206206 operation: "realpath-target",
207207 });
208208 assert.instanceOf(error.cause, PlatformError.PlatformError);
209− assert.strictEqual(
210− (error.cause as PlatformError.PlatformError).reason._tag,
211− "NotFound",
212− );
209+ assert.strictEqual((error.cause as PlatformError.PlatformError).reason._tag, "NotFound");
213210 }),
214211 );
215212 });
@@ -243,9 +240,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 27 unmodified lines
243240 yield* writeTextFile(cwd, "src/existing.ts", "export {};\n");
244241
245242 const beforeWrite = yield* workspaceEntries.list({ cwd });
246− assert.isFalse(
247− beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
248− );
243+ assert.isFalse(beforeWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
249244
250245 yield* workspaceFileSystem.writeFile({
251246 cwd,
@@ -254,9 +249,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 2 unmodified lines
254249 });
255250
256251 const afterWrite = yield* workspaceEntries.list({ cwd });
257− assert.isTrue(
258− afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"),
259− );
252+ assert.isTrue(afterWrite.entries.some((entry) => entry.path === "plans/effect-rpc.md"));
260253 assert.isFalse(afterWrite.truncated);
261254 }),
262255 );