aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-08-17 06:11:40 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-08-17 06:11:40 +0800
commit666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4 (patch)
treeae8f2a3a805e0ac24ed3d1058138cf1b3c25b763 /test
parent121af0c4b9fd12e9960cbf5bbb3203819b854eb7 (diff)
downloadtangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.gz
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.bz2
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.lz
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.xz
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.tar.zst
tangerine-wallet-browser-666f3cd66ce56013e5688d514e3c1fc3ec8a6ac4.zip
Added compliance for tests and properly accounts for N/A conversions.
Diffstat (limited to 'test')
-rw-r--r--test/unit/config-manager-test.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js
index 6eeaa7c51..b34089163 100644
--- a/test/unit/config-manager-test.js
+++ b/test/unit/config-manager-test.js
@@ -24,16 +24,16 @@ describe('config-manager', function() {
describe('#setCurrentFiat', function() {
it('should make getCurrentFiat return true once set', function() {
assert.equal(configManager.getCurrentFiat(), false)
- configManager.setCurrentFiat('usd')
+ configManager.setCurrentFiat('USD')
var result = configManager.getCurrentFiat()
- assert.equal(result, 'usd')
+ assert.equal(result, 'USD')
})
it('should work with other currencies as well', function() {
assert.equal(configManager.getCurrentFiat(), false)
- configManager.setCurrentFiat('jpy')
+ configManager.setCurrentFiat('JPY')
var result = configManager.getCurrentFiat()
- assert.equal(result, 'jpy')
+ assert.equal(result, 'JPY')
})
})
@@ -50,7 +50,7 @@ describe('config-manager', function() {
assert.equal(configManager.getConversionRate(), false)
var promise = new Promise(
function (resolve, reject) {
- configManager.setCurrentFiat('usd')
+ configManager.setCurrentFiat('USD')
configManager.updateConversionRate().then(function() {
resolve()
})
@@ -71,7 +71,7 @@ describe('config-manager', function() {
assert.equal(configManager.getConversionRate(), false)
var promise = new Promise(
function (resolve, reject) {
- configManager.setCurrentFiat('jpy')
+ configManager.setCurrentFiat('JPY')
configManager.updateConversionRate().then(function() {
resolve()
})
@@ -80,7 +80,6 @@ describe('config-manager', function() {
promise.then(function() {
var result = configManager.getConversionRate()
assert.equal(typeof result, 'number')
- done()
}).catch(function(err) {
console.log(err)
})