test: type fixes the CI typecheck found, and the lowered test-new-service baseline

- mailInboxModel.test: actionsOf takes the entry alone since the AI reread left.
- booking-origin.test: its endpoint helper gives the sequence an endpoint has.
- test-new-service baseline follows booking-import's single service factory.
This commit is contained in:
Maurice
2026-11-13 19:20:09 +01:00
parent 53833fd212
commit 1aa586d829
3 changed files with 4 additions and 6 deletions
@@ -69,10 +69,7 @@ describe('mailInboxModel', () => {
it('FE-MAILINBOX-MODEL-004: a forwarding confirmation or a newsletter only informs', () => {
expect(
actionsOf(
entry({ item: null, reason: null }, { reason: 'forwarding_confirmation', forwarding_code: '123456' }),
true
)
actionsOf(entry({ item: null, reason: null }, { reason: 'forwarding_confirmation', forwarding_code: '123456' }))
).toEqual(['discard']);
});
@@ -47,7 +47,7 @@
"tests/unit/nest/auth.controller.test.ts": 1,
"tests/unit/nest/auth.service.test.ts": 9,
"tests/unit/nest/backup.controller.test.ts": 1,
"tests/unit/nest/booking-import/booking-import.service.test.ts": 3,
"tests/unit/nest/booking-import/booking-import.service.test.ts": 1,
"tests/unit/nest/booking-import/import-jobs.service.test.ts": 1,
"tests/unit/nest/booking-import/kitinerary-extractor.service.test.ts": 1,
"tests/unit/nest/budget.service.calc.test.ts": 1,
@@ -10,8 +10,9 @@ const item = (fields: Partial<BookingImportPreviewItem>): BookingImportPreviewIt
...fields,
});
const endpoint = (role: string, name: string, code: string | null) => ({
const endpoint = (role: 'from' | 'to', name: string, code: string | null) => ({
role,
sequence: role === 'from' ? 0 : 1,
name,
code,
lat: 0,