Skip to content

Commit

Permalink
chore: add UT for package bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
aelf-lxy committed Nov 25, 2024
1 parent 8d47c91 commit f42fa50
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/react/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jest.mock('@aelf-web-login/wallet-adapter-bridge', () => ({
subscribe: () => null,
},
instance: {} as IBridgeAPI['instance'],
mountApp: () => null,
unMountApp: () => null,
}),
}));

Expand Down
2 changes: 0 additions & 2 deletions packages/react/src/__tests__/context.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const mockBridgeAPI: IBridgeAPI = {
subscribe: () => null as unknown as ReturnType<IBridgeAPI['store']['subscribe']>,
} as unknown as IBridgeAPI['store'],
instance: {} as IBridgeAPI['instance'],
mountApp: () => null,
unMountApp: () => null,
};

describe('WebLoginProvider', () => {
Expand Down
74 changes: 71 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f42fa50

Please sign in to comment.