From 023c10a7c66c94f91829828e5d61b5758390ae0c Mon Sep 17 00:00:00 2001 From: Tate Date: Thu, 21 Nov 2024 07:59:13 +0000 Subject: [PATCH] fix unit test --- packages/node-core/src/indexer/fetch.service.ts | 2 +- packages/node-core/src/indexer/test.runner.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/node-core/src/indexer/fetch.service.ts b/packages/node-core/src/indexer/fetch.service.ts index 9734343bd6..82eefc5127 100644 --- a/packages/node-core/src/indexer/fetch.service.ts +++ b/packages/node-core/src/indexer/fetch.service.ts @@ -208,7 +208,7 @@ export abstract class BaseFetchService { storeServiceMock = { setBlockHeight: jest.fn(), getStore: jest.fn().mockReturnValue({}), - storeCache: mockStoreCache, + modelProvider: mockStoreCache, }; sandboxMock = { @@ -123,7 +123,7 @@ describe('TestRunner', () => { (testRunner as any).storeService = { getStore: () => storeMock, setBlockHeight: jest.fn(), - storeCache: mockStoreCache, + modelProvider: mockStoreCache, } as any; await testRunner.runTest(testMock, sandboxMock, indexBlock); @@ -180,7 +180,7 @@ describe('TestRunner', () => { (testRunner as any).storeService = { getStore: () => storeMock, setBlockHeight: jest.fn(), - storeCache: mockStoreCache, + modelProvider: mockStoreCache, } as any; await testRunner.runTest(testMock, sandboxMock, indexBlock);