Skip to content

Commit 141110b

Browse files
committed
fix: test updated
1 parent 32af06f commit 141110b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/waiting-time/waiting-time.service.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ describe('WaitingTimeService', () => {
108108
useValue: {
109109
getActiveValidatorsCount: jest.fn(),
110110
getFrameBalances: jest.fn(),
111+
getSweepMeanEpochs: jest.fn(),
111112
},
112113
},
113114
{
@@ -153,6 +154,7 @@ describe('WaitingTimeService', () => {
153154
jest.spyOn(rewardsStorage, 'getRewardsPerFrame').mockReturnValue(rewardsPerFrame);
154155
jest.spyOn(validatorsStorage, 'getActiveValidatorsCount').mockReturnValue(10000);
155156
jest.spyOn(validatorsStorage, 'getFrameBalances').mockReturnValue({});
157+
jest.spyOn(validatorsStorage, 'getSweepMeanEpochs').mockReturnValue(1041);
156158
jest.spyOn(service, 'getFrameIsBunker').mockReturnValue(null);
157159
// needed for mock only block number
158160
jest.spyOn(rpcBatchProvider, 'getBlock').mockResolvedValue({ number: 21367114 } as any);

0 commit comments

Comments
 (0)