From 487f07f3776da75a54e8187d499e1c77203955f1 Mon Sep 17 00:00:00 2001 From: JGiter Date: Tue, 12 Nov 2024 12:12:59 +0200 Subject: [PATCH] test: did service --- src/modules/did/did.service.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/did/did.service.spec.ts b/src/modules/did/did.service.spec.ts index 8ad284b1..f095367c 100644 --- a/src/modules/did/did.service.spec.ts +++ b/src/modules/did/did.service.spec.ts @@ -20,6 +20,7 @@ import { UPDATE_DOCUMENT_QUEUE_NAME } from './did.types'; import { IPFSService } from '../ipfs/ipfs.service'; import { LatestDidSync } from './latestDidSync.entity'; import { DidSyncStatusEntity } from './didSyncStatus.entity'; +import { DataSource } from 'typeorm'; const { formatBytes32String } = utils; @@ -126,6 +127,7 @@ describe('DidDocumentService', () => { inject: [ConfigService], }, { provide: IPFSService, useValue: MockObject }, + { provide: DataSource, useValue: MockObject }, ], }).compile(); await module.init();