mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
9b41a52182
* Add token list support for pairs on binance chain * Update tokenlists.ts * Update tokenlists.ts * Update tokenlists.ts * Fix asset for bnb pair * Update package-lock.json * Add models for token list * Add BinanceMarket
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');
|
|
});
|
|
}); |