UNPKG

@yoroi/banxa

Version:

The Banxa integration package of Yoroi SDK

18 lines (17 loc) 612 B
"use strict"; var _coinTypes = require("./coin-types"); describe('banxaIsCoinType', () => { it('should return true for valid coin types', () => { const validCoinTypes = ['ADA']; validCoinTypes.forEach(coinType => { expect((0, _coinTypes.banxaIsCoinType)(coinType)).toBe(true); }); }); it('should return false for invalid coin types', () => { const invalidCoinTypes = ['XRP', 'DOGE', '', undefined, null, 123]; invalidCoinTypes.forEach(coinType => { expect((0, _coinTypes.banxaIsCoinType)(coinType)).toBe(false); }); }); }); //# sourceMappingURL=coin-types.test.js.map