Commit f86d75d
app.component.spec: isolate session-restoration setTimeout from cross-test pollution
AppComponent never unsubscribes from authCast, so prior tests' component
instances re-fire on cast.next and queue their own setTimeouts, overwriting
the captured callback. Gate the capture behind a flag set by THIS app's
mocked initializeUserSession so we only grab the timeout from this instance's
restoration branch.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e4d2057 commit f86d75d
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
291 | 295 | | |
| 296 | + | |
292 | 297 | | |
293 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
294 | 302 | | |
295 | 303 | | |
296 | 304 | | |
| |||
299 | 307 | | |
300 | 308 | | |
301 | 309 | | |
| 310 | + | |
302 | 311 | | |
303 | 312 | | |
304 | 313 | | |
| |||
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
| 319 | + | |
310 | 320 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 321 | + | |
315 | 322 | | |
316 | 323 | | |
317 | 324 | | |
| |||
0 commit comments