UNPKG

@yoroi/exchange

Version:

The Exchange package of Yoroi SDK

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