Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Mar 18, 2021
1 parent d37cca0 commit 18d31b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ exports[`all USDT are countervalue enabled 1`] = `
Array [
"algorand/asa/312769",
"ethereum/erc20/usd_tether__erc20_",
"ethereum_ropsten/erc20/usd_tether__erc20_",
"tron/trc20/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
]
`;
4 changes: 3 additions & 1 deletion packages/cryptoassets/src/currencies.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ test("can get fiat by coin type", () => {
});

test("all USDT are countervalue enabled", () => {
const tokens = listTokens().filter((t) => t.ticker === "USDT");
const tokens = listTokens().filter(
(t) => t.ticker === "USDT" && !t.parentCurrency.isTestnetFor
);
expect(tokens.map((t) => t.id).sort()).toMatchSnapshot();
expect(tokens.every((t) => t.disableCountervalue === false)).toBe(true);
});
Expand Down
5 changes: 1 addition & 4 deletions packages/cryptoassets/src/tokens.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// @flow
import type { TokenCurrency, CryptoCurrency } from "./types";
import {
getCryptoCurrencyById,
findCryptoCurrencyByTicker,
} from "./currencies";
import { getCryptoCurrencyById } from "./currencies";

import erc20tokens from "../data/erc20";
import trc10tokens from "../data/trc10";
Expand Down

0 comments on commit 18d31b1

Please sign in to comment.