Skip to content

Commit

Permalink
fix: provide db before service, order matters
Browse files Browse the repository at this point in the history
  • Loading branch information
Samika Kashyap committed May 22, 2024
1 parent 7c7993c commit 6ecf8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/__tests__/request-controller.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ describe('createRequest', () => {
.provideValue('dbConnection', dbConnection)
.provideClass('metadataRepository', MetadataRepository)
.provideFactory('requestRepository', RequestRepository.make)
.provideClass('replicationRequestRepository', ReplicationRequestRepository)
.provideClass('anchorRepository', AnchorRepository)
.provideClass('ipfsService', MockIpfsService)
.provideFactory('merkleCarService', makeMerkleCarService)
Expand All @@ -103,7 +104,6 @@ describe('createRequest', () => {
.provideClass('anchorRequestParamsParser', AnchorRequestParamsParser)
.provideClass('validationQueueService', ValidationSqsQueueService)
.provideClass('requestService', RequestService)
.provideClass('replicationRequestRepository', ReplicationRequestRepository)
.provideClass('requestController', RequestController)
controller = container.resolve('requestController')
})
Expand Down Expand Up @@ -374,6 +374,7 @@ describe('createRequest', () => {
.provideValue('dbConnection', dbConnection)
.provideClass('metadataRepository', MetadataRepository)
.provideFactory('requestRepository', RequestRepository.make)
.provideClass('replicationRequestRepository', ReplicationRequestRepository)
.provideClass('anchorRepository', AnchorRepository)
.provideClass('ipfsService', MockIpfsService)
.provideFactory('merkleCarService', makeMerkleCarService)
Expand All @@ -383,7 +384,6 @@ describe('createRequest', () => {
.provideClass('anchorRequestParamsParser', AnchorRequestParamsParser)
.provideClass('validationQueueService', ValidationSqsQueueService)
.provideClass('requestService', RequestService)
.provideClass('replicationRequestRepository', ReplicationRequestRepository)
.provideClass('requestController', RequestController)

controllerPublishingToQueue = container.resolve('requestController')
Expand Down

0 comments on commit 6ecf8a3

Please sign in to comment.