diff --git a/packages/node-core/src/admin/admin.controller.spec.ts b/packages/node-core/src/admin/admin.controller.spec.ts index 12128aa119..c91cb17c69 100644 --- a/packages/node-core/src/admin/admin.controller.spec.ts +++ b/packages/node-core/src/admin/admin.controller.spec.ts @@ -5,7 +5,7 @@ import {HttpException, HttpStatus} from '@nestjs/common'; import {EventEmitter2} from '@nestjs/event-emitter'; import {Test, TestingModule} from '@nestjs/testing'; import {TargetBlockPayload, RewindPayload, AdminEvent} from '../events'; -import {MonitorService, PoiService, ProofOfIndex} from '../indexer'; +import {MonitorService, PoiService, ProofOfIndex, StoreService} from '../indexer'; import {AdminController, AdminListener} from './admin.controller'; import {BlockRangeDto} from './blockRange'; @@ -45,6 +45,12 @@ describe('AdminController', () => { emit: jest.fn(), }, }, + { + provide: StoreService, + useValue: { + syncDbSize: jest.fn(), + }, + }, ], }).compile();