UNPKG

@yoroi/swap

Version:
18 lines (17 loc) 748 B
"use strict"; var _types = require("@yoroi/types"); var _getDexUrlByProtocol = require("./getDexUrlByProtocol"); describe('getDexUrlByProtocol', () => { it('should return the correct URL for a known protocol', () => { const protocol = _types.Swap.Protocol.Minswap_stable; const result = (0, _getDexUrlByProtocol.getDexUrlByProtocol)(protocol); expect(result).toBe('https://minswap.org'); }); it('should return the default URL for an unknown protocol', () => { const protocol = 'unknown_protocol'; const expectedUrl = 'https://yoroi-wallet.com'; const result = (0, _getDexUrlByProtocol.getDexUrlByProtocol)(protocol); expect(result).toBe(expectedUrl); }); }); //# sourceMappingURL=getDexUrlByProtocol.test.js.map