Skip to content

Commit

Permalink
Updated test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Singhal committed Aug 8, 2024
1 parent 6ef977e commit 683e1ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/lib/test/keyring.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ describe('getActiveChains',()=>{
{ chain: 'velas', symbol: 'VLX' },
{ chain: 'avalanche', symbol: 'AVAX' },
{ chain: 'base', symbol: 'BASE' },
{ chain: 'zkEVM', symbol: 'ZKEVM' }
{ chain: 'zkEVM', symbol: 'ZKEVM' },
{ chain: 'bevm', symbol: 'BTC' }
]
}).toMatchObject(result)

Expand Down
4 changes: 1 addition & 3 deletions src/lib/test/vault.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ describe('getSupportedChains' , ()=>{

let result = await new Vault({}).getSupportedChains()
expect({
evmChains: { ethereum: 'ETH', bsc: 'BSC', polygon: 'MATIC', optimism: 'OP', arbitrum: 'ARB', mantle: 'MNT', velas: 'VLX', avalanche: 'AVAX', base:'BASE', zkEVM: 'ZKEVM'},
evmChains: { 'ethereum': 'ETH', 'bsc': 'BSC', 'polygon': 'MATIC', 'optimism': 'OP' ,'arbitrum': 'ARB', 'mantle': 'MNT', 'velas': 'VLX' , 'avalanche': 'AVAX', 'base':'BASE', 'zkEVM': 'ZKEVM', 'bevm':'BTC'},
nonEvmChains: { bitcoin: 'BTC', stacks: 'STX', solana: 'SOL' }
}).toMatchObject(result.response)
})




})

Expand Down

1 comment on commit 683e1ed

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report (73%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files73.0964.7983.7873.85 
chains100100100100 
   index.js100100100100 
config100100100100 
   index.js100100100100 
constants100100100100 
   index.js100100100100 
constants/responses100100100100 
   index.js100100100100 
lib70.7464.9481.6671.4 
   keyring.js66.3962.3379.5967.0145, 58, 67–68, 139–151, 171, 179–188, 198–201, 246–282, 293, 297, 302–304, 316–391, 407–445, 508–511, 654, 681–726, 799, 816–817, 833–835, 866–874, 897–901, 921–925, 944–952, 979, 985
   vault.js92.7885.4190.992.7822, 29, 44–47, 70, 80
utils80.5363.6392.8581.81 
   helper.js80.5363.6392.8581.819–16, 51–52, 77, 91, 103–105, 114–115, 131–133, 154, 166, 178

Please sign in to comment.