Skip to content

Commit

Permalink
DPP-1 test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Sep 12, 2023
1 parent 8422945 commit dd09f38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/data-store/src/__tests__/contact.store.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DataSource } from 'typeorm'

import { DataStoreMigrations, DataStoreContactEntities } from '../index'
import { ContactStore } from '../contact/ContactStore'
import {
Expand Down Expand Up @@ -1676,12 +1675,15 @@ describe('Contact store tests', (): void => {
const resultPartyType: PartyType = await contactStore.getPartyType({ partyTypeId: savedPartyType.id })
expect(resultPartyType).toBeDefined()

const includingMigrationPartyTypes: Array<PartyType> = await contactStore.getPartyTypes()
expect(includingMigrationPartyTypes.length).toEqual(2)

await contactStore.removePartyType({ partyTypeId: savedPartyType.id })

const result: Array<PartyType> = await contactStore.getPartyTypes()

expect(result).toBeDefined()
expect(result.length).toEqual(0)
expect(result.length).toEqual(1)
})

it('should throw error when removing party type attached to contact', async (): Promise<void> => {
Expand Down

0 comments on commit dd09f38

Please sign in to comment.