diff options
author | bitpshr <mail@bitpshr.net> | 2018-04-17 05:45:18 +0800 |
---|---|---|
committer | bitpshr <mail@bitpshr.net> | 2018-04-17 06:12:05 +0800 |
commit | b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c (patch) | |
tree | 16920399eb3be919d017148b299dd61d68b5d92d /test | |
parent | d0447f90583275868bb72aa7ae8f670bf3668173 (diff) | |
download | tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar.gz tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.tar.zst tangerine-wallet-browser-b4912f29cd3b6e0a5df81e9f69acc50b03e31c0c.zip |
Disable token price polling when no client is active
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/token-rates-controller.js | 1 |
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() |