Commit 2c9c293
fix(tests): add ToastrModule to dialog spec, mock getPayrollSettings in container spec
PayrollExportDialogComponent uses ToastrService (via ApiBaseService) which
requires ToastConfig — add ToastrModule.forRoot() to test imports.
TimePlanningsContainerComponent now calls settingsService.getPayrollSettings()
on init to determine whether to show the payroll export button — add the
mock method and a default return value to the existing test setup.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9f8342f commit 2c9c293
File tree
2 files changed
+5
-2
lines changed- eform-client/src/app/plugins/modules/time-planning-pn/components/plannings
- time-planning-actions/payroll-export
- time-plannings-container
2 files changed
+5
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments