mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
|
import {
|
||
|
assetID
|
||
|
} from "../script/generic/asset";
|
||
|
|
||
|
describe("Test eth-address helpers", () => {
|
||
|
test(`Test coin`, () => {
|
||
|
expect(assetID(714)).toEqual('c714');
|
||
|
expect(assetID(714, '')).toEqual('c714');
|
||
|
});
|
||
|
test(`Test token`, () => {
|
||
|
expect(assetID(714, 'TWT-8C2')).toEqual('c714_tTWT-8C2');
|
||
|
});
|
||
|
});
|