@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
19 lines • 802 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
require("../__tests__/test-helpers/setup");
const helpers_1 = require("./helpers");
describe("Currencies helpers", () => {
test("listCurrencies without includeTokens", () => {
const currencies = (0, helpers_1.listCurrencies)(false);
currencies.forEach(currency => {
expect((0, helpers_1.isCryptoCurrency)(currency)).toBeTruthy();
});
});
test("listCurrencies with includeTokens", () => {
const currencies = (0, helpers_1.listCurrencies)(true);
currencies.forEach(currency => {
expect((0, helpers_1.isCryptoCurrency)(currency) || (0, helpers_1.isTokenCurrency)(currency)).toBeTruthy();
});
});
});
//# sourceMappingURL=helpers.test.js.map