Commit ec7a892
committed
test(webapp): reset the archive stub flag in beforeEach
The failure case toggled a module-level flag and reset it inline, so any
early exit between the toggle and the reset would leave the stub in its
failure state for the rest of the file. Reset it in beforeEach instead,
matching dashboardAgentClientMetadata.test.ts and
metadataRouteReplicaLag.guard.test.ts.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9c18422 commit ec7a892
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
48 | 53 | | |
49 | | - | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
0 commit comments