Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Nov 7, 2024
1 parent 82c2441 commit d00d55a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions app/core/RPCMethods/wallet_addEthereumChain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,15 @@ describe('RPC Method - wallet_addEthereumChain', () => {

it('should report native currency symbol length being too long', async () => {
const symbol = 'aaaaaaaaaaaaaaa';
await expect(wallet_addEthereumChain({
req: {
params: [
{
...correctParams,
nativeCurrency: { symbol, decimals: 18 },
},
],
},
...otherOptions,
await expect(
wallet_addEthereumChain({
req: {
params: [{
...correctParams,
nativeCurrency: { symbol, decimals: 18 },
}],
},
...otherOptions,
}),
).rejects.toThrow(
`Expected 1-6 character string 'nativeCurrency.symbol'. Received:\n${symbol}`,
Expand Down

0 comments on commit d00d55a

Please sign in to comment.