Skip to content

Commit

Permalink
chore: fix /bridge utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
work-kevin-flynn committed Nov 26, 2024
1 parent 4de9bf5 commit ec6a406
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ afterEach(() => {
vi.mock('@portkey/contracts', () => ({
getContractBasic: vi.fn(),
}));
vi.mock('@portkey/did-ui-react', () => ({
getChainInfo: (c: TChainId) => (!c ? null : {}),
did: {
didWallet: {
managementAccount: {
privateKey: '',
},
},
},
PortkeyProvider: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
}));

describe('getCaContractBase()', () => {
it('should throw error about chain is not running', async () => {
Expand Down

0 comments on commit ec6a406

Please sign in to comment.