From c591f6bcc958ec661035d658cc65330b1e2f34bc Mon Sep 17 00:00:00 2001 From: kennsippell Date: Wed, 22 May 2024 00:16:22 -0700 Subject: [PATCH] Fix failing test --- test/services/upload-manager.spec.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/services/upload-manager.spec.ts b/test/services/upload-manager.spec.ts index 16f96ae7..0fca6ea5 100644 --- a/test/services/upload-manager.spec.ts +++ b/test/services/upload-manager.spec.ts @@ -325,19 +325,17 @@ describe('services/upload-manager.ts', () => { }); it('#173 - replacement when place has no primary contact', async () => { - const { remotePlace, sessionCache, contactType, fakeFormData, chtApi } = await createMocks(); - const toReplace: RemotePlace = { - id: 'id-replace', + const { subcounty, sessionCache, contactType, fakeFormData, chtApi } = await createMocks(); + const toReplace: ChtDoc = { + _id: 'id-replace', name: 'to-replace', - lineage: [remotePlace.id], - type: 'remote', }; chtApi.updatePlace.resolves({ _id: 'updated-place-id' }); fakeFormData.hierarchy_replacement = toReplace.name; chtApi.getPlacesWithType - .resolves([remotePlace]) + .resolves([subcounty]) .onSecondCall() .resolves([toReplace]);