Skip to content

Commit

Permalink
fix broken admin controller test
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqiang90 committed Jun 10, 2024
1 parent f168dbd commit 32aed37
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/node-core/src/admin/admin.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -45,6 +45,12 @@ describe('AdminController', () => {
emit: jest.fn(),
},
},
{
provide: StoreService,
useValue: {
syncDbSize: jest.fn(),
},
},
],
}).compile();

Expand Down

0 comments on commit 32aed37

Please sign in to comment.