Skip to content

Commit

Permalink
Fix mocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
valurefugl committed Sep 2, 2024
1 parent 9eeb847 commit 9c0c0e3
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -135,20 +136,23 @@ const delegations: Record<string, DelegationRecordDTO[]> = {
fromNationalId: userWithDelegations.nationalId,
toNationalId: userWithNoDelegations.nationalId,
subjectId: null, // test that 3rd party login is not used if subjectId is null
type: null,
},
],
[userWithDelegations2.nationalId]: [
{
fromNationalId: userWithDelegations2.nationalId,
toNationalId: userWithDelegations.nationalId,
subjectId: delegationSubjectId,
type: null,
},
],
[userWithSendToDelegationsFeatureFlagDisabled.nationalId]: [
{
fromNationalId: userWithSendToDelegationsFeatureFlagDisabled.nationalId,
toNationalId: userWithNoDelegations.nationalId,
subjectId: faker.datatype.uuid(),
type: null,
},
],
}
Expand Down

0 comments on commit 9c0c0e3

Please sign in to comment.