From 26fbe60a17e7d80bff5691da5f75e07fd06812d0 Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:33:40 +0700 Subject: [PATCH] chore: fix tests --- src/scores.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/scores.test.ts b/src/scores.test.ts index e71302a1..9a48bff9 100644 --- a/src/scores.test.ts +++ b/src/scores.test.ts @@ -4,7 +4,12 @@ import { getCurrentBlockNum, sha256 } from './utils'; import snapshot from '@snapshot-labs/strategies'; jest.mock('./utils'); -jest.mock('./helpers/cache'); +jest.mock('./helpers/cache', () => { + return { + cachedScores: jest.fn(), + cachedVp: jest.fn() + }; +}); jest.mock('@snapshot-labs/strategies'); describe('scores function', () => {