aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Bouchon <mail@bitpshr.net>2018-11-14 03:57:43 +0800
committerGitHub <noreply@github.com>2018-11-14 03:57:43 +0800
commit0549782595335e8257d1b4abf7d6220020e2c8db (patch)
tree57c439742e2f608534bd8e247c6ff1bc19dcdf5b /test
parent3866222285be74c6578c830001b4896705abdb3d (diff)
downloadtangerine-wallet-browser-0549782595335e8257d1b4abf7d6220020e2c8db.tar
tangerine-wallet-browser-0549782595335e8257d1b4abf7d6220020e2c8db.tar.gz
tangerine-wallet-browser-0549782595335e8257d1b4abf7d6220020e2c8db.tar.bz2
tangerine-wallet-browser-0549782595335e8257d1b4abf7d6220020e2c8db.tar.lz
tangerine-wallet-browser-0549782595335e8257d1b4abf7d6220020e2c8db.tar.xz
tangerine-wallet-browser-0549782595335e8257d1b4abf7d6220020e2c8db.tar.zst
tangerine-wallet-browser-0549782595335e8257d1b4abf7d6220020e2c8db.zip
Update Balanc3 API (#5744)
* Update balanc3 API used in TokenRatesController * Remove demo URL and use nativeCurrency when fetching token rates
Diffstat (limited to 'test')
-rw-r--r--test/unit/app/controllers/token-rates-controller.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/unit/app/controllers/token-rates-controller.js b/test/unit/app/controllers/token-rates-controller.js
index 28e583d8d..ccc279cbe 100644
--- a/test/unit/app/controllers/token-rates-controller.js
+++ b/test/unit/app/controllers/token-rates-controller.js
@@ -17,13 +17,4 @@ describe('TokenRatesController', () => {
assert.strictEqual(stub.getCall(0).args[1], 1337)
stub.restore()
})
-
- it('should fetch each token rate based on address', async () => {
- const controller = new TokenRatesController()
- controller.isActive = true
- controller.fetchExchangeRate = address => address
- controller.tokens = [{ address: 'foo' }, { address: 'bar' }]
- await controller.updateExchangeRates()
- assert.deepEqual(controller.store.getState().contractExchangeRates, { foo: 'foo', bar: 'bar' })
- })
})