Skip to content

Commit

Permalink
test(swap): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Jan 23, 2024
1 parent 2d91da2 commit b42e824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,9 @@ exports[`swap > Should peg-out USDC on Algorand 1`] = `
"_client": AlgodClient {
"c": HTTPClient {
"bc": URLTokenBaseHTTPClient {
"baseURL": "https://algorand-node-1.ptokens.io/",
"baseURL": "https://mainnet-api.algonode.cloud/",
"defaultHeaders": {},
"tokenHeader": {
"X-Algo-API-Token": "4950dcab89ddc2e7f4dd8e51deb2f0c44aa37aab18cbfd8242ac5fb697222342",
},
"tokenHeader": {},
},
},
"intDecoding": "default",
Expand Down
4 changes: 1 addition & 3 deletions src/utils/__tests__/swap-valildator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ describe('isValidSwap', () => {
})

test('Should return false if from or to assets are not in assets array', () => {
assets
.filter((asset) => asset.symbol !== 'ethPNT')
.map((_from) => assets.map((_to) => expect(isValidSwap(_from, _to, migrationAssets)).toBeFalsy()))
assets.map((_from) => assets.map((_to) => expect(isValidSwap(_from, _to, migrationAssets)).toBeFalsy()))
})

test('Should return true if from asset is ethPNT and to assets are non-native PNT', () => {
Expand Down

0 comments on commit b42e824

Please sign in to comment.