mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-09 07:30:58 +00:00
Merge branch 'feature/currency-switcher' of https://github.com/trezor/trezor-wallet into feature/currency-switcher
This commit is contained in:
commit
58ca09def0
@ -1,18 +0,0 @@
|
|||||||
import * as utils from '../cryptoUriParser';
|
|
||||||
|
|
||||||
describe('crypto uri parser', () => {
|
|
||||||
it('parseUri', () => {
|
|
||||||
expect(utils.parseUri('http://www.trezor.io')).toEqual({ address: '//www.trezor.io' }); // TODO: Error in function
|
|
||||||
expect(utils.parseUri('www.trezor.io')).toEqual({ address: 'www.trezor.io' });
|
|
||||||
expect(utils.parseUri('www.trezor.io/TT')).toEqual({ address: 'www.trezor.io/TT' });
|
|
||||||
expect(utils.parseUri('www.trezor.io/TT?param1=aha')).toEqual({
|
|
||||||
address: 'www.trezor.io/TT',
|
|
||||||
param1: 'aha',
|
|
||||||
});
|
|
||||||
expect(utils.parseUri('www.trezor.io/TT?param1=aha¶m2=hah')).toEqual({
|
|
||||||
address: 'www.trezor.io/TT',
|
|
||||||
param1: 'aha',
|
|
||||||
param2: 'hah',
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user