Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 23, 2023
1 parent 52a1814 commit d58d233
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ describe('useCompatibilityWarning', () => {
const { result } = renderHook(() => useCompatibilityWarning(proposal, true))

expect(result.current).toEqual({
message:
'Fake dApp does not support the Safe Account network. If you want to interact with Fake dApp, please switch to a Safe Account on a supported network.',
message: `Fake dApp does not support this Safe Account's network (this network). Please switch to a Safe Account on one of the supported networks below.`,
severity: 'error',
})
})
Expand All @@ -110,8 +109,7 @@ describe('useCompatibilityWarning', () => {
const { result } = renderHook(() => useCompatibilityWarning(proposal, true))

expect(result.current).toEqual({
message:
'This dApp does not support the Safe Account network. If you want to interact with this dApp, please switch to a Safe Account on a supported network.',
message: `This dApp does not support this Safe Account's network (this network). Please switch to a Safe Account on one of the supported networks below.`,
severity: 'error',
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Warnings: Record<string, { severity: AlertColor; message: string }> = {
},
UNSUPPORTED_CHAIN: {
severity: 'error',
message: `${NAME_PLACEHOLDER} does not support this Safe Account's network (${CHAIN_PLACEHOLDER}). Please switch to a Safe Account on one of supported networks below.`,
message: `${NAME_PLACEHOLDER} does not support this Safe Account's network (${CHAIN_PLACEHOLDER}). Please switch to a Safe Account on one of the supported networks below.`,
},
WRONG_CHAIN: {
severity: 'info',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,15 @@ describe('WalletConnectWallet', () => {
'eip155:137',
'eip155:1101',
],
methods: ['eth_sendTransaction', 'personal_sign'],
methods: [
'eth_sendTransaction',
'personal_sign',
'eth_accounts',
'eth_sign',
'eth_signTypedData',
'eth_signTypedData_v4',
'wallet_switchEthereumChain',
],
events: ['chainChanged', 'accountsChanged'],
accounts: [
`eip155:1:${hexZeroPad('0x123', 20)}`,
Expand Down

0 comments on commit d58d233

Please sign in to comment.