Skip to content

Commit

Permalink
feat(old-age-pension): new application (#11862)
Browse files Browse the repository at this point in the history
* feat/wip old age pension

* Feat/old age pension periods (#11410)

* feat(oldAgePension): period screen

* added unitest for oldAgePensionUtils

* added validator and snemmtöku additional documents

* chore: Gitbook update dirty files

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* add validators for periods (#11417)

* add validators

* validator text message

* add old age pension to codeowners

* fix codeowners

* wip residence history + wip confirm screen + one payment per year

* added fisherman and additional files screen (#11443)

* added fisherman and additional files screen

* change id name

* format

* add to Review page

* fix(old-age-pension): unitest and format (#11476)

* added comment page

* feat(old-age-pension): Add comment and files to Review screen (#11507)

* residence history

* added connected applications screen (#11508)

* format

* clean in messages file (#11518)

* feat(old-age-pension): added homeAllowence (#11547)

* feat(old-age-pension): added homeAllowence

* feat(old-age-pension): move to Section

* Fix/old age pension review page fishermen period attachments (#11570)

* fix(old-age-pension): fishermen period

* fix(old-age-pension): fix attachments

* fix(old-age-pension): corrected homeAllowance objects

* fix(old-age-pension): fix homeAllowance screens

* fix(old-age-pension): add applicationType and move fishermen option there (#11574)

* fix(old-age-pension): early retirement (#11580)

* call child custody from national registry

* clean..

* wip child support + clean in message

* add text to message

* fix(old-age-pension): correct error message for cohabitants

* Update libs/service-portal/information/src/lib/messages.ts

Co-authored-by: Þorkell Máni Þorkelsson <[email protected]>

* chore: nx format:write update dirty files

* update message

* fix(old-age-pension): Period warning msg and cohabitants request

* [TS-26] Residence history - screen

* wip child support

* format

* [TS-67] Formatted marital status

* set up contentful

* [TS-71] Prevent applicant to send application if period is more than 2 years ago

* Fixed period

* Fixed application type label

* Feat/old age pension half pension (#11699)

* feat(old-age-pension): change texts

* feat(old-age-pension): Added self-employed

* feat(old-age-pension): finish self-employed

* feat(old-age-pension): employer is on right track

* added EmployersOverview

* feat(old-age-pension): added monthly ratio

* feat(old-age-pension): added monthly rate

* feat(old-age-pension): added employment to review page

* fix(old-age-pension): August text

* fix(old-age-pension): message

* fix(old-age-pension): add applicationType

* [TS-77] clean up in external data and add for information page before external data

* format

* fix spelling error

* misc fixes

* feat(old-age-pension): added scratch payment page (#11712)

* home allowance to household supplement

* fix message file for contentful

* [TS-79 | 81 | 83] minor fixes for employer

* [TS-89 | 90 | 91]: add missing things in review screen

* [TS-80]: fix so months can be translated

* fix(old-age-pension): employers and personal allowance (#11722)

* [TS-88]: translate period in review page

* [TS-84]: show month in period

* Changed PDF display in review screen

* feat(old-age-pension):  Added new action card functionality (#11742)

* Added Conclusion screen and pendingAction/historyLogs to template

* Change payment info alert from warning to info

* Updated old age pension template

* [TS-105] add unit tests + fix lint warnings

* Fixed comment in Review screen

* [TS-112]: readme + flow chart

* [TS-111] Fix lint errors and warnings

* changes to readme

* [TS-111]: fix residence history table

* [TS-58] Changing phone number on confirm page

* Fix/old age pension alert message (#11766)

* fix(old-age-pension): alert message mess application up

* fix(old-age-pension): use doesNotRequiredAnswers

* clean up

* [TS-111] fix lint errors

* [TS-140] Old age pension - Fix divider in Review page

* Fix/old age pension employers validator (#11771)

* fix(old-age-pension): employers answersvalidator

* clean up

* [TS-144] Only display spouse allowance question in payment page if has spouse

* Changed id name in InReview form from parental leave to old age pension

* [TS-149] Format spouse national id in applicant info page

* Fixed margin between items on Review page

* [TS-145] Add print button to Review page

* [TS-150] Bankanúmer birtast ekki á Review síðu

* [TS-153] Payment page issue

* [TS-144] Only display spouse allowance question in payment page if has spouse - Review

* fix typo

* Fixed employers ratio monthly

* Added margin to Attachments in Review

* [TS-159] Fix register employer total ratio field

* [TS-160] Fix error when change between monthly and yearly ratio when register employer

* feat(old-age-pension): getting connect to TR X-road endpoint (#11948)

* chore: nx format:write update dirty files

* feat(old-age-pension): Update register child page in old age pension application (#11903)

* [TS-157] Update register child page in old age pension application

* Updated validator to prevent duplicated national id in Child pension

* chore: nx format:write update dirty files

* Feat/old age pension gagnagatt (#12054)

* feat(old-age-pension): added gagnagátt

* feat(old-age-pension): Add TR id

* Feat/old age pension ts 152 (#12059)

* TS-152

* - Renamed the Client Tryggingastofnun to english
- Added GetStatusApi

* - Rollback

* - Rollback changes
- Added translation strings

* Fix JEST

* Fix for unit test

* User test API

* Changed the TR icelandic name to english

* chore: nx format:write update dirty files

* fix(old-age-pension): Add event between submitted to inReview (#12063)

* Fix/old age pension period show errors (#12069)

* fix(old-age-pension): another way to show errors

* fix(old-age-pension): change error text

* change error text

* change error text

* chore: nx format:write update dirty files

* Feat/old age pension add feature flag (#12088)

* feat(old-age-pension): add featureFlag

* format

* TS-173 list up custody kids in checkboxes + more

* TS-192 if no children in custody is selected, register a child

* lint & format

* fix(old-age-pension): final version for external page (#12136)

* nx upgrade

* nx upgrade

* add markdown to massage

* fix link in messages

* clean messages

* TS-170 - Implement AlertmessageField (#12185)

* TS-170 - Implement AlertmessageField

* Format code

* feat(old-age-pension): Align our states with TR's (#12270)

* [TS-165] Align our states with TR's

* [TS-205] Add validation to Additional documents required

* update unit test after aligning states with TR

* chore: nx format:write update dirty files

* call bank info api

* TS-207 call bank info api from TR

* TS-207 fix and format

* TS-211 rename for clarity

* chore: nx format:write update dirty files

* more name changes for readability

* chore: nx format:write update dirty files

* remove tax level radio button options on payment page

* chore: nx format:write update dirty files

* make default value 100% for personal allowance

* refactor

* format

* feat(old age pension): Send application (#12355)

* -Added sendApplication

* First implementation of data object to send to TR with attachments

* - Added missing data
- Code clean up

* - Created sendApplication endpoint
- Updated yml schema
- Code clean up
- Bug fix

* - Added jest tests
- Fixed unit tests

* - Moved Uploads to a type

* - prevent sending in childPension and fileUploadChildPension.maintenance if childPensionAddChild is NO

* - Changed the ApplicationType Enum to be a  number
- Changed the TaxOptions Enum to be a number
- Made changes to the data sent to TR

* Update libs/application/template-api-modules/src/lib/modules/templates/old-age-pension/old-age-pension.service.ts

Co-authored-by: veronikasif <[email protected]>

* Fix after review

* Fix after review

* Fix after review
minimize the data being sent over to TR

* Fix after review and added unit tests

* Added application id

* Fix after review

* Change the applicationType back to string as TR team requested

---------

Co-authored-by: veronikasif <[email protected]>

* add validation for period to confirm child is under 18

* format

* TS-219 wip spouse in nursing home

* format

* Feat(old age pension): send application fix (#12478)

* TS-194 make changes to the Application endpoint

* TS-194 Fix the data for the Application endpoint

* TS-228 add tax level in bank information page

* change taxLevel to number and bank to string

* TS-231 Change text household supplement

* TS-222 Throw out test and status endpoints

* TS-234 Fix personalAllowanceUsage = null error

* ts-223

* TS-232 and TS-235 fix space in period screen and make space after residence history

* make alert title more consistent

* more alert message changes

* TS-238 Change text on pension page

* revert residence history default value as yes

* format

* [TS-239]: Update additional documents flow

* feat(old-age-pension): Check if applicant is eligible (#12558)

* [TS-152] When applicant create new application

* Update messages

* remove bank info api and spouse in nursing home + calling applicant api

* format

* [TS-239]: Remove unused file for filesInfoScreen

* ts-299 phonenumber is not required but validate if filled in

* Fix Eligible endpoint when running locally

* remove connected applications code + validation

* remove unit tests, text and api calls for connected applications + add info about connected applications to conclusion screen

* [TS-194] Save the application on TR servers (#12738)

* [TS-263]: Fix progress bar and move one payment per year page

* feat(old-age-pension): Make sure additionalDocumentsRequired don't get sent twice to TR when requesting more documents (#12757)

* [TS-201]: Mark additionalDocumentsRequired as sent in additionalDocumentsRequired state

* [TS-201]: clear previously added documents on entry to additionalDocumentsRequired state

* Update libs/application/templates/social-insurance-administration/old-age-pension/src/lib/OldAgePensionTemplate.ts

Co-authored-by: veronikasif <[email protected]>

---------

Co-authored-by: veronikasif <[email protected]>

* [TS-201]: Clean up

* 230 - icelandic and foreign bank, call currencies API, only send bank account if changes or registered

* [TS-263]: Update formstepper in prerequisites to same as oap form

* ts-265 update send application api

* TS-230 remove unset bankaccount when switching between icelandic and foreign bank account + use regex validation and format instead of a package (#12818)

* remove unused states

* feat(old-age-pension): Add dismiss button when editing (#12786)

* [TS-259] Add dismiss button when applicant changes application

* Fix import after merge conflict

* Small fix

* Update Codeowners

* clean up

* update flow chart and lifecycles

* remove console.log

* [TS-263]: Fix and add unit tests

* chore: nx format:write update dirty files

* hide hald old age pension, call clearBankAccountInfo when exiting draft and change error message

* remove spouse allowance

* isEmpty check

* update CODEOWNERS

* feat(old-age-pension): Rename TR service, added core folder for shared utils and removed Abort state (#12875)

* [TS-289] Refactor TR service

* Removed Abort state

* Format

* removed Abort state transitions test on template

* chore: nx format:write update dirty files

* Fixed service name

* Fixed failing test

* use enhancedFetch and ConfigModule

* remove unused import

* let template api handle the errors

* Fixed typo, removed progress and removed UploadAdditionalDocuments

* reduce timeout time for SocialInsuranceAdministrationApi

* Removed unused vars

* Moved employment validation to dataSchema

* fixed typo

* Removed unnecessary useEffect

* merge

* Update payment info alert msg and fixed failing test

* Update conclusion screen

* hide 1/2 old age pension and handle undefined bank type

* refactor

* add conclusion to formstepper in Prerequisites

* [TS-302] Update conclusion screen

* [TS-306] Remove unused images

* refactor

* [TS-308]: Fix error in unit test

* feat(old-age pension): Refactor bank functions (#12963)

* [TS-304] refactor bank functions?

* Removed duplicate import

* chore: nx format:write update dirty files

* [TS-309] Hide foreign bank account option if not registered

* Update unit tests in core

* send documents

* send documents 2

* send additional documents

* format

* remove unit test

* move period selection from custom component

* fix unit test

* chore: nx format:write update dirty files

---------

Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: Þorkell Máni Þorkelsson <[email protected]>
Co-authored-by: Veronika Sif <[email protected]>
Co-authored-by: veronikasif <[email protected]>
Co-authored-by: birkirkristmunds <[email protected]>
Co-authored-by: bkristmundsson <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
13 people authored Dec 5, 2023
1 parent fa23791 commit 2be6a59
Show file tree
Hide file tree
Showing 95 changed files with 9,765 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,16 @@ libs/clients/rsk/relationships/
/apps/consultation-portal/ @island-is/advania
/libs/clients/consultation-portal/ @island-is/advania
/libs/api/domains/consultation-portal/ @island-is/advania

/apps/skilavottord/ @island-is/deloitte
/libs/skilavottord/ @island-is/deloitte
/libs/application/templates/parental-leave/ @island-is/deloitte
/libs/application/template-api-modules/src/lib/modules/templates/parental-leave/ @island-is/deloitte
/libs/clients/vmst/ @island-is/deloitte
/libs/api/domains/directorate-of-labour/ @island-is/deloitte
/libs/application/template-api-modules/src/lib/modules/templates/social-insurance-administration @island-is/deloitte
/libs/application/templates/social-insurance-administration/ @island-is/deloitte
/libs/clients/social-insurance-administration/ @island-is/deloitte

/apps/services/auth/ids-api/ @island-is/fuglar @island-is/aranja
/apps/services/auth/admin-api/ @island-is/fuglar @island-is/aranja
Expand Down
15 changes: 2 additions & 13 deletions libs/application/core/src/lib/fieldBuilders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,23 +506,12 @@ export function buildExpandableDescriptionField(
export function buildAlertMessageField(
data: Omit<AlertMessageField, 'type' | 'component' | 'children'>,
): AlertMessageField {
const {
id,
title,
message,
alertType,
condition,
marginTop,
marginBottom,
links,
} = data
const { message, alertType, marginTop, marginBottom, links } = data
return {
...extractCommonFields(data),
children: undefined,
id,
title,
message,
alertType,
condition,
type: FieldTypes.ALERT_MESSAGE,
component: FieldComponents.ALERT_MESSAGE,
marginTop,
Expand Down
11 changes: 10 additions & 1 deletion libs/application/core/src/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,16 @@ export const coreErrorMessages = defineMessages({
defaultMessage: 'Náði ekki að sækja fæðingarstað',
description: 'Not able to fetch birthplace',
},

nationalRegistryResidenceHistoryMissing: {
id: 'application.system:core.fetch.data.nationalRegistryResidenceHistoryMissing',
defaultMessage: 'Náði ekki að sækja búsetusögu',
description: 'Not able to fetch residence history',
},
nationalRegistryCohabitantsMissing: {
id: 'application.system:core.fetch.data.nationalRegistryCohabitantsMissing',
defaultMessage: 'Náði ekki að sækja samíbúa',
description: 'Not able to fetch cohabitants',
},
applicationIsPrunedAndReadOnly: {
id: 'application.system:core.fetch.data.applicationIsPrunedAndReadOnly',
defaultMessage: 'Umsókn hefur runnið út á tíma og hefur verið gerð óvirk.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
NationalRegistrySpouse,
NationalRegistryParameters,
NationalRegistryBirthplace,
NationalRegistryResidenceHistory,
ChildrenCustodyInformationParameters,
NationalRegistryParent,
NationalRegistryMaritalTitle,
Expand Down Expand Up @@ -456,4 +457,44 @@ export class NationalRegistryService extends BaseTemplateApiService {
}
)
}

async getResidenceHistory({
auth,
}: TemplateApiModuleActionProps): Promise<
NationalRegistryResidenceHistory[] | null
> {
const residenceHistory: NationalRegistryResidenceHistory[] | null =
await this.nationalRegistryApi.getResidenceHistory(auth.nationalId)

if (!residenceHistory) {
throw new TemplateApiError(
{
title: coreErrorMessages.nationalRegistryResidenceHistoryMissing,
summary: coreErrorMessages.nationalRegistryResidenceHistoryMissing,
},
404,
)
}

return residenceHistory
}

async getCohabitants({
auth,
}: TemplateApiModuleActionProps): Promise<string[] | null> {
const cohabitants: string[] | null =
await this.nationalRegistryApi.getCohabitants(auth.nationalId)

if (!cohabitants) {
throw new TemplateApiError(
{
title: coreErrorMessages.nationalRegistryCohabitantsMissing,
summary: coreErrorMessages.nationalRegistryCohabitantsMissing,
},
404,
)
}

return cohabitants
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ import { CitizenshipService } from './directorate-of-immigration/citizenship/cit

import { DrivingLicenseDuplicateModule } from './driving-license-duplicate/driving-license-duplicate.module'
import { DrivingLicenseDuplicateService } from './driving-license-duplicate/driving-license-duplicate.service'
import { SocialInsuranceAdministrationModule } from './social-insurance-administration/social-insurance-administration.module'
import { SocialInsuranceAdministrationService } from './social-insurance-administration/social-insurance-administration.service'

export const modules = [
ReferenceTemplateModule,
Expand Down Expand Up @@ -144,6 +146,7 @@ export const modules = [
DrivingLicenseBookUpdateInstructorModule,
DrivingLearnersPermitModule,
DrivingLicenseDuplicateModule,
SocialInsuranceAdministrationModule,
CitizenshipModule,
]

Expand Down Expand Up @@ -196,5 +199,6 @@ export const services = [
DrivingLicenseBookUpdateInstructorService,
DrivingLearnersPermitService,
DrivingLicenseDuplicateService,
SocialInsuranceAdministrationService,
CitizenshipService,
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { getMonthNumber } from './social-insurance-administration-utils'

describe('Old age pesion utils', () => {
it('should return 3 for March', () => {
expect(getMonthNumber('March')).toBe(3)
})
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import { Application, YES, YesOrNo } from '@island.is/application/types'
import parse from 'date-fns/parse'
import {
OldAgePension,
Attachment,
} from '@island.is/clients/social-insurance-administration'
import {
ApplicationType,
getApplicationAnswers,
getApplicationExternalData,
} from '@island.is/application/templates/social-insurance-administration/old-age-pension'
import { getValueViaPath } from '@island.is/application/core'
import { BankAccountType } from '@island.is/application/templates/social-insurance-administration-core/constants'
import {
formatBank,
shouldNotUpdateBankAccount,
} from '@island.is/application/templates/social-insurance-administration-core/socialInsuranceAdministrationUtils'

export const transformApplicationToOldAgePensionDTO = (
application: Application,
uploads: Attachment[],
): OldAgePension => {
const {
applicationType,
selectedYear,
selectedMonth,
applicantPhonenumber,
bank,
bankAccountType,
onePaymentPerYear,
comment,
personalAllowance,
personalAllowanceUsage,
taxLevel,
iban,
swift,
bankName,
bankAddress,
currency,
paymentInfo,
} = getApplicationAnswers(application.answers)
const { bankInfo, email } = getApplicationExternalData(
application.externalData,
)

// If foreign residence is found then this is always true
const residenceHistoryQuestion = getValueViaPath(
application.answers,
'residenceHistory.question',
YES,
) as YesOrNo

const oldAgePensionDTO: OldAgePension = {
period: {
year: +selectedYear,
month: getMonthNumber(selectedMonth),
},
comment: comment,
applicationId: application.id,
...(!shouldNotUpdateBankAccount(bankInfo, paymentInfo) && {
...((bankAccountType === undefined ||
bankAccountType === BankAccountType.ICELANDIC) && {
domesticBankInfo: {
bank: formatBank(bank),
},
}),
...(bankAccountType === BankAccountType.FOREIGN && {
foreignBankInfo: {
iban: iban.replace(/[\s]+/g, ''),
swift: swift.replace(/[\s]+/g, ''),
foreignBankName: bankName,
foreignBankAddress: bankAddress,
foreignCurrency: currency,
},
}),
}),
taxInfo: {
personalAllowance: YES === personalAllowance,
personalAllowanceUsage:
YES === personalAllowance ? +personalAllowanceUsage : 0,
taxLevel: +taxLevel,
},
applicantInfo: {
email: email,
phonenumber: applicantPhonenumber,
},
hasAbroadResidence: YES === residenceHistoryQuestion,
hasOneTimePayment: YES === onePaymentPerYear,
isSailorPension: applicationType === ApplicationType.SAILOR_PENSION,
uploads,
}

return oldAgePensionDTO
}

export const getMonthNumber = (monthName: string): number => {
// Parse the month name and get the month number (0-based)
const monthNumber = parse(monthName, 'MMMM', new Date())
return monthNumber.getMonth() + 1
}

export const getApplicationType = (application: Application): string => {
const { applicationType } = getApplicationAnswers(application.answers)

if (applicationType === ApplicationType.HALF_OLD_AGE_PENSION) {
return ApplicationType.HALF_OLD_AGE_PENSION
}

// Sailors pension and Old age pension is the same application type
return ApplicationType.OLD_AGE_PENSION
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { DynamicModule } from '@nestjs/common'
import { BaseTemplateAPIModuleConfig } from '../../../types'
import { SharedTemplateAPIModule } from '../../shared'

import {
APPLICATION_ATTACHMENT_BUCKET,
SocialInsuranceAdministrationService,
} from './social-insurance-administration.service'
import { ApplicationApiCoreModule } from '@island.is/application/api/core'
import { NationalRegistryClientModule } from '@island.is/clients/national-registry-v2'
import { SocialInsuranceAdministrationClientModule } from '@island.is/clients/social-insurance-administration'

export class SocialInsuranceAdministrationModule {
static register(config: BaseTemplateAPIModuleConfig): DynamicModule {
return {
module: SocialInsuranceAdministrationModule,
imports: [
SocialInsuranceAdministrationClientModule,
SharedTemplateAPIModule.register(config),
ApplicationApiCoreModule,
NationalRegistryClientModule,
],
providers: [
SocialInsuranceAdministrationService,
{
provide: APPLICATION_ATTACHMENT_BUCKET,
useFactory: () => config.attachmentBucket,
},
],
exports: [SocialInsuranceAdministrationService],
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import { createApplication } from '@island.is/application/testing'
import { SocialInsuranceAdministrationClientService } from '@island.is/clients/social-insurance-administration'
import { Test, TestingModule } from '@nestjs/testing'
import {
APPLICATION_ATTACHMENT_BUCKET,
SocialInsuranceAdministrationService,
} from './social-insurance-administration.service'
import { createCurrentUser } from '@island.is/testing/fixtures'
import { LOGGER_PROVIDER, logger } from '@island.is/logging'
import { ApplicationTypes } from '@island.is/application/types'

describe('SocialInsuranceAdministrationService', () => {
let socialInsuranceAdministrationService: SocialInsuranceAdministrationService

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [
SocialInsuranceAdministrationService,
{
provide: LOGGER_PROVIDER,
useValue: logger,
},
{
provide: SocialInsuranceAdministrationClientService,
useClass: jest.fn(() => ({
sendApplication: () =>
Promise.resolve({
applicationLineId: '123',
}),
})),
},
{
provide: APPLICATION_ATTACHMENT_BUCKET,
useValue: 'attachmentBucket',
},
],
}).compile()

socialInsuranceAdministrationService =
module.get<SocialInsuranceAdministrationService>(
SocialInsuranceAdministrationService,
)
})

it('should send old age pension application', async () => {
const auth = createCurrentUser()
const application = createApplication({
externalData: {
socialInsuranceAdministrationApplicant: {
data: {
bankAccount: {
bank: '2222',
ledger: '00',
accountNumber: '123456',
},
},
date: new Date('2021-06-10T11:31:02.641Z'),
status: 'success',
},
},
answers: {
paymentInfo: {
bank: '222200123456',
iban: '',
swift: '',
taxLevel: '2',
bankAccountType: 'icelandic',
personalAllowance: 'no',
},
'period.year': '2023',
'fileUploadAdditionalFiles.additionalDocuments': [
{ key: 'key', name: 'name' },
],
},
typeId: ApplicationTypes.OLD_AGE_PENSION,
})

// Also need to mock the pdf here
jest
.spyOn(socialInsuranceAdministrationService, 'getPdf')
.mockImplementation(jest.fn())

const result = await socialInsuranceAdministrationService.sendApplication({
application,
auth,
currentUserLocale: 'is',
})

expect(result).toMatchObject({ applicationLineId: '123' })
})
})
Loading

0 comments on commit 2be6a59

Please sign in to comment.