Commit 938f4f3
fix: resolve unhandled errors in test suite
- Fix connect-db.component.spec.ts: wrap response in { connection: ... }
to match expected updateConnection response structure
- Fix connections.service.spec.ts: add missing mock methods
- Add checkMasterPassword to fakeMasterPassword mock
- Add dismissAlert to fakeNotifications mock
- Convert updateConnection error test from async/await to subscribe
pattern to properly handle Observable errors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent f20d272 commit 938f4f3
2 files changed
Lines changed: 16 additions & 9 deletions
File tree
- frontend/src/app
- components/connect-db
- services
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
474 | | - | |
475 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
476 | 488 | | |
477 | 489 | | |
478 | 490 | | |
479 | 491 | | |
480 | 492 | | |
481 | 493 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
| 494 | + | |
488 | 495 | | |
489 | 496 | | |
490 | 497 | | |
| |||
0 commit comments