Commit 110df38
Raphael Lechner
test(server): harden shadow test — assert home readFile is never called
Address CodeRabbit nitpick on #1405: `parseWorkflow` is globally mocked,
so asserting `body.source === 'project'` alone cannot catch a regression
that reads both files before deciding. Add a `spyOn(fs.readFile)` that
fails if the home path was ever opened.
Restores the spy in finally so other tests aren't affected.1 parent 1d4869b commit 110df38
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| |||
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
321 | 331 | | |
| 332 | + | |
322 | 333 | | |
323 | 334 | | |
324 | 335 | | |
| |||
0 commit comments