Skip to content

Commit

Permalink
fix: stub permission proxy call
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <[email protected]>
  • Loading branch information
md0x committed Jul 19, 2024
1 parent f2fb908 commit 6bb034a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/walletManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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(() => {
Expand Down

0 comments on commit 6bb034a

Please sign in to comment.