FIX: Iranian currency

This commit is contained in:
MC Saeid 2021-09-21 18:18:46 +04:30 committed by GitHub
parent 43709beec1
commit 35d7ecbe5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -113,6 +113,12 @@
"locale": "hi-HN",
"source": "CoinDesk"
},
"IRT": {
"endPointKey": "IRT",
"symbol": "تومان",
"locale": "fa-IR",
"source": "Exir"
},
"IRR": {
"endPointKey": "IRR",
"symbol": "﷼",

View File

@ -42,9 +42,9 @@ describe('currency', () => {
// assert.ok(cur.BTC_LBP > 0);
// test Exir rate source
await currency.setPrefferedCurrency(FiatUnit.IRR);
await currency.setPrefferedCurrency(FiatUnit.IRT);
await currency.init(true);
cur = JSON.parse(await AsyncStorage.getItem(currency.EXCHANGE_RATES));
assert.ok(cur.BTC_IRR > 0);
assert.ok(cur.BTC_IRT > 0);
});
});