Skip to content

Commit

Permalink
Merge branch 'migrate-to-mongodb' of github.com:blockcoders/ink-subst…
Browse files Browse the repository at this point in the history
…rate-explorer-api into migrate-to-mongodb
  • Loading branch information
fersirni committed Dec 8, 2022
2 parents 6094fa5 + 88ce24f commit 18edf81
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/subscriptions/subscriptions.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { mockEvents } from '../../mocks/events-mocks'
import { mockPinoService } from '../../mocks/pino-mocks'
import { mockExtrinsics, mockTimestamp, mockTransactions } from '../../mocks/transactions-mock'
import { BlocksService } from '../blocks/blocks.service'
import { DbService } from '../db/db.service'
import { EnvModule } from '../env/env.module'
import { EventsService } from '../events/events.service'
import { SyncService } from '../sync/sync.service'
Expand All @@ -15,9 +16,6 @@ import { SubscriptionsService } from './subscriptions.service'

jest.mock('@polkadot/api')
jest.mock('../utils')
jest.mock('../../mongo-indexes', () => ({
main: jest.fn(),
}))

describe('subscriptionsService', () => {
let service: SubscriptionsService
Expand Down Expand Up @@ -70,6 +68,12 @@ describe('subscriptionsService', () => {
updateSync: jest.fn(),
},
},
{
provide: DbService,
useValue: {
addIndexes: jest.fn(),
},
},
mockPinoService(SubscriptionsService.name),
],
}).compile()
Expand Down

0 comments on commit 18edf81

Please sign in to comment.