Showing the changes to apps/server/src/workspace/WorkspaceFileSystem.test.ts (1 of 1 file). Show all
Unified · Split
| @@ -206,10 +206,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 205 unmodified lines | ||
| 206 | 206 | operation: "realpath-target", |
| 207 | 207 | }); |
| 208 | 208 | 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"); | |
| 213 | 210 | }), |
| 214 | 211 | ); |
| 215 | 212 | }); |
| @@ -243,9 +240,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 27 unmodified lines | ||
| 243 | 240 | yield* writeTextFile(cwd, "src/existing.ts", "export {};\n"); |
| 244 | 241 | |
| 245 | 242 | 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")); | |
| 249 | 244 | |
| 250 | 245 | yield* workspaceFileSystem.writeFile({ |
| 251 | 246 | cwd, |
| @@ -254,9 +249,7 @@ it.layer(TestLayer, { excludeTestServices: true })("WorkspaceFileSystemLive", (i · 2 unmodified lines | ||
| 254 | 249 | }); |
| 255 | 250 | |
| 256 | 251 | 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")); | |
| 260 | 253 | assert.isFalse(afterWrite.truncated); |
| 261 | 254 | }), |
| 262 | 255 | ); |