Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Oct 30, 2023
1 parent 47a5a25 commit 26fbe60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scores.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 26fbe60

Please sign in to comment.