Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
py-zoid committed Sep 20, 2024
1 parent 0a86c6b commit d856824
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/defaultTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ describe("Test new token additions", () => {
let map = {};
for (const token of tokenlists.mappedTokenList.tokens) {
const key = `${token.originTokenAddress.toLowerCase()}`;
if (!map[token.originNetworkId]) {
map[token.originNetworkId] = {};
}
expect(typeof map[token.originNetworkId][key]).to.equal(
"undefined",
`duplicate originTokenAddress: ${token.originTokenAddress} in mappedTokenList`
Expand Down
3 changes: 3 additions & 0 deletions tests/tokenAddition/tokensAdditionTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ describe("Test new token additions", () => {
let map = {};
for (const token of tokenlists.mappedTokenList.tokens) {
const key = `${token.originTokenAddress.toLowerCase()}`;
if (!map[token.originNetworkId]) {
map[token.originNetworkId] = {};
}
expect(typeof map[token.originNetworkId][key]).to.equal(
"undefined",
`duplicate originTokenAddress: ${token.originTokenAddress} in mappedTokenList`
Expand Down

0 comments on commit d856824

Please sign in to comment.