From 6bb034a2a829c986314936d49e6e46551aa38e9b Mon Sep 17 00:00:00 2001 From: Pablo Maldonado Date: Fri, 19 Jul 2024 18:02:44 +0100 Subject: [PATCH] fix: stub permission proxy call Signed-off-by: Pablo Maldonado --- test/walletManager.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/walletManager.ts b/test/walletManager.ts index 1b45014..1e83d2a 100644 --- a/test/walletManager.ts +++ b/test/walletManager.ts @@ -6,7 +6,9 @@ import "../src/lib/express-extensions"; import * as gckms from '../src/lib/gckms'; import * as ovalDiscovery from '../src/lib/ovalDiscovery'; import * as logger from '../src/lib/logging'; +import { PermissionProxy__factory } from "../src/contract-types"; import { OvalConfigs, OvalConfigsShared } from '../src/lib/types'; +import { env } from '../src/lib'; const mockProvider = new JsonRpcProvider(); @@ -30,6 +32,10 @@ describe('WalletManager Tests', () => { // Cleanup old records WalletManager.getInstance()['cleanupOldRecords'](Infinity); WalletManager['instance'] = undefined as any; + + sinon.stub(PermissionProxy__factory, 'connect').returns({ + senders: sinon.stub().resolves(true) + } as any); }); afterEach(() => {