From 9c0c0e3200532306664efdc02e9a3e8ac4cf1074 Mon Sep 17 00:00:00 2001 From: Valur Einarsson Date: Mon, 2 Sep 2024 09:58:32 +0100 Subject: [PATCH] Fix mocks. --- .../notifications/notificationsWorker/mocks.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/services/user-notification/src/app/modules/notifications/notificationsWorker/mocks.ts b/apps/services/user-notification/src/app/modules/notifications/notificationsWorker/mocks.ts index d682f863e966..14f666cf7124 100644 --- a/apps/services/user-notification/src/app/modules/notifications/notificationsWorker/mocks.ts +++ b/apps/services/user-notification/src/app/modules/notifications/notificationsWorker/mocks.ts @@ -1,15 +1,16 @@ import faker from 'faker' -import { UserProfileDto } from '@island.is/clients/user-profile' -import { createNationalId } from '@island.is/testing/fixtures' import { DelegationRecordDTO } from '@island.is/clients/auth/delegation-api' +import { UserProfileDto } from '@island.is/clients/user-profile' import { Features } from '@island.is/feature-flags' -import type { User } from '@island.is/auth-nest-tools' -import type { ConfigType } from '@island.is/nest/config' +import { createNationalId } from '@island.is/testing/fixtures' import { UserNotificationsConfig } from '../../../../config' import { HnippTemplate } from '../dto/hnippTemplate.response' +import type { User } from '@island.is/auth-nest-tools' +import type { ConfigType } from '@island.is/nest/config' + export const mockFullName = 'mockFullName' export const delegationSubjectId = 'delegation-subject-id' @@ -135,6 +136,7 @@ const delegations: Record = { fromNationalId: userWithDelegations.nationalId, toNationalId: userWithNoDelegations.nationalId, subjectId: null, // test that 3rd party login is not used if subjectId is null + type: null, }, ], [userWithDelegations2.nationalId]: [ @@ -142,6 +144,7 @@ const delegations: Record = { fromNationalId: userWithDelegations2.nationalId, toNationalId: userWithDelegations.nationalId, subjectId: delegationSubjectId, + type: null, }, ], [userWithSendToDelegationsFeatureFlagDisabled.nationalId]: [ @@ -149,6 +152,7 @@ const delegations: Record = { fromNationalId: userWithSendToDelegationsFeatureFlagDisabled.nationalId, toNationalId: userWithNoDelegations.nationalId, subjectId: faker.datatype.uuid(), + type: null, }, ], }