diff --git a/packages/backend/src/nest/storage/communityMetadata/communityMetadata.store.spec.ts b/packages/backend/src/nest/storage/communityMetadata/communityMetadata.store.spec.ts index be01484720..36b88ffc2b 100644 --- a/packages/backend/src/nest/storage/communityMetadata/communityMetadata.store.spec.ts +++ b/packages/backend/src/nest/storage/communityMetadata/communityMetadata.store.spec.ts @@ -121,11 +121,9 @@ describe('CommmunityMetadataStore', () => { ...metaValid, rootCa: 'Something invalid!', } - const ret = await communityMetadataStore.setEntry(metaInvalid.id, metaInvalid) + expect(communityMetadataStore.setEntry(metaInvalid.id, metaInvalid)).rejects.toThrow() const meta = communityMetadataStore.getEntry() - - expect(ret).toStrictEqual(undefined) - expect(meta).toEqual(undefined) + expect(meta).toEqual(null) }) }) diff --git a/packages/backend/src/nest/storage/storage.service.spec.ts b/packages/backend/src/nest/storage/storage.service.spec.ts index 9893376b79..de94ff9ce1 100644 --- a/packages/backend/src/nest/storage/storage.service.spec.ts +++ b/packages/backend/src/nest/storage/storage.service.spec.ts @@ -536,13 +536,13 @@ describe('StorageService', () => { await storageService.init(peerId) // @ts-ignore storageService.certificatesRequestsStore = { - getCsrs: jest.fn(() => { + getEntries: jest.fn(() => { return csrs }), } // @ts-ignore storageService.certificatesStore = { - getCertificates: jest.fn(() => { + getEntries: jest.fn(() => { return certs }), }