aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-17 05:45:18 +0800
committerbitpshr <mail@bitpshr.net>2018-04-17 06:12:05 +0800
commitb4912f29cd3b6e0a5df81e9f69acc50b03e31c0c (patch)
tree16920399eb3be919d017148b299dd61d68b5d92d /test/unit
parentd0447f90583275868bb72aa7ae8f670bf3668173 (diff)
downloadtangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar
tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar.gz
tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar.bz2
tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar.lz
tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar.xz
tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar.zst
tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.zip
Disable token price polling when no client is active
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/token-rates-controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/token-rates-controller.js b/test/unit/token-rates-controller.js
index 55bfe7823..a49547313 100644
--- a/test/unit/token-rates-controller.js
+++ b/test/unit/token-rates-controller.js
@@ -20,6 +20,7 @@ describe('TokenRatesController', () => {
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()