Skip to content

Commit

Permalink
Merge pull request #6 from etherspot/transactionFund
Browse files Browse the repository at this point in the history
Modified the test cases
  • Loading branch information
Jineshdarjee authored Aug 7, 2023
2 parents 4f64349 + 58dd544 commit 551b9c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/specs/mainnet/01_TransferringFunds/Arbitrum.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ describe('The SDK, when transfer a token with arbitrum network on the MainNet',
}
});

it('REGRESSION: Perform the transfer ERC20 token with other provider netowrk details while Getting the Decimal from ERC20 Contract on the arbitrum network', async () => {
it.only('REGRESSION: Perform the transfer ERC20 token with other provider netowrk details while Getting the Decimal from ERC20 Contract on the arbitrum network', async () => {
// get the respective provider details
let provider;
try {
Expand Down Expand Up @@ -2059,7 +2059,7 @@ describe('The SDK, when transfer a token with arbitrum network on the MainNet',
'The expected validation is not displayed when entered the other Provider Network while Getting the Decimal from ERC20 Contract.',
);
} catch (e) {
if (e.reason === 'could not detect network') {
if (e.code === 'CALL_EXCEPTION') {
console.log(
'The validation for Provider Network is displayed as expected while Getting the Decimal from ERC20 Contract.',
);
Expand Down
2 changes: 1 addition & 1 deletion test/specs/mainnet/01_TransferringFunds/Matic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ describe('The SDK, when transfer a token with matic network on the MainNet', ()
'The expected validation is not displayed when entered the other Provider Network while Getting the Decimal from ERC20 Contract.',
);
} catch (e) {
if (e.reason === 'could not detect network') {
if (e.code === 'CALL_EXCEPTION') {
console.log(
'The validation for Provider Network is displayed as expected while Getting the Decimal from ERC20 Contract.',
);
Expand Down
4 changes: 2 additions & 2 deletions test/specs/mainnet/01_TransferringFunds/Optimism.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ describe('The SDK, when transfer a token with optimism network on the MainNet',
}
});

it('REGRESSION: Perform the transfer ERC20 token with other provider netowrk details while Getting the Decimal from ERC20 Contract on the optimism network', async () => {
it.only('REGRESSION: Perform the transfer ERC20 token with other provider netowrk details while Getting the Decimal from ERC20 Contract on the optimism network', async () => {
// get the respective provider details
let provider;
try {
Expand Down Expand Up @@ -2059,7 +2059,7 @@ describe('The SDK, when transfer a token with optimism network on the MainNet',
'The expected validation is not displayed when entered the other Provider Network while Getting the Decimal from ERC20 Contract.',
);
} catch (e) {
if (e.reason === 'could not detect network') {
if (e.code === 'CALL_EXCEPTION') {
console.log(
'The validation for Provider Network is displayed as expected while Getting the Decimal from ERC20 Contract.',
);
Expand Down

0 comments on commit 551b9c4

Please sign in to comment.