mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 19:40:34 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user