aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-07-22 07:44:50 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-07-22 07:44:50 +0800
commita612fcee64422ca43c470d7832a263f5e490611d (patch)
treec6cd96d20a9dfb9d0ebc9d9a66a364d94ee60870 /test
parent716e65424d2ba490a384bfc1f0591685eb2867fa (diff)
downloadtangerine-wallet-browser-a612fcee64422ca43c470d7832a263f5e490611d.tar
tangerine-wallet-browser-a612fcee64422ca43c470d7832a263f5e490611d.tar.gz
tangerine-wallet-browser-a612fcee64422ca43c470d7832a263f5e490611d.tar.bz2
tangerine-wallet-browser-a612fcee64422ca43c470d7832a263f5e490611d.tar.lz
tangerine-wallet-browser-a612fcee64422ca43c470d7832a263f5e490611d.tar.xz
tangerine-wallet-browser-a612fcee64422ca43c470d7832a263f5e490611d.tar.zst
tangerine-wallet-browser-a612fcee64422ca43c470d7832a263f5e490611d.zip
Change function names. Add interval polling for api. Refactor functions.
Diffstat (limited to 'test')
-rw-r--r--test/unit/config-manager-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js
index cf8362108..eba663975 100644
--- a/test/unit/config-manager-test.js
+++ b/test/unit/config-manager-test.js
@@ -44,14 +44,14 @@ describe('config-manager', function() {
})
})
- describe('#setConversionRate', function() {
+ describe('#updateConversionRate', function() {
it('should retrieve an update for ETH to USD and set it in memory', function(done) {
this.timeout(15000)
assert.equal(configManager.getConversionRate(), false)
var promise = new Promise(
function (resolve, reject) {
configManager.setCurrentFiat('usd')
- configManager.setConversionRate().then(function() {
+ configManager.updateConversionRate().then(function() {
resolve()
})
})
@@ -72,7 +72,7 @@ describe('config-manager', function() {
var promise = new Promise(
function (resolve, reject) {
configManager.setCurrentFiat('jpy')
- configManager.setConversionRate().then(function() {
+ configManager.updateConversionRate().then(function() {
resolve()
})
})