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();