aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-27 07:22:13 +0800
committerkumavis <aaron@kumavis.me>2017-01-27 07:22:13 +0800
commita14a25c423fc8f7c40ba0c1c440991dd8a52410f (patch)
treeeb74bcf1f1ba766f1cbfecf0b37405b0d778a5ad /test
parentaf115aa4c12849b147224cd0d167f5a57565ed6d (diff)
downloadtangerine-wallet-browser-a14a25c423fc8f7c40ba0c1c440991dd8a52410f.tar
tangerine-wallet-browser-a14a25c423fc8f7c40ba0c1c440991dd8a52410f.tar.gz
tangerine-wallet-browser-a14a25c423fc8f7c40ba0c1c440991dd8a52410f.tar.bz2
tangerine-wallet-browser-a14a25c423fc8f7c40ba0c1c440991dd8a52410f.tar.lz
tangerine-wallet-browser-a14a25c423fc8f7c40ba0c1c440991dd8a52410f.tar.xz
tangerine-wallet-browser-a14a25c423fc8f7c40ba0c1c440991dd8a52410f.tar.zst
tangerine-wallet-browser-a14a25c423fc8f7c40ba0c1c440991dd8a52410f.zip
config-manager - default to USD for currentFiat
Diffstat (limited to 'test')
-rw-r--r--test/unit/config-manager-test.js18
1 files changed, 4 insertions, 14 deletions
diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js
index fa3929599..acc73ebb4 100644
--- a/test/unit/config-manager-test.js
+++ b/test/unit/config-manager-test.js
@@ -16,23 +16,13 @@ describe('config-manager', function() {
describe('currency conversions', function() {
- describe('#getCurrentFiat', function() {
- it('should return undefined if no previous key exists', function() {
- var result = configManager.getCurrentFiat()
- assert.ok(!result)
- })
- })
-
describe('#setCurrentFiat', function() {
- it('should make getCurrentFiat return true once set', function() {
- assert.equal(configManager.getCurrentFiat(), undefined)
- configManager.setCurrentFiat('USD')
- var result = configManager.getCurrentFiat()
- assert.equal(result, 'USD')
+ it('should return USD as default', function() {
+ assert.equal(configManager.getCurrentFiat(), 'USD')
})
- it('should work with other currencies as well', function() {
- assert.equal(configManager.getCurrentFiat(), undefined)
+ it('should be able to set to other currency', function() {
+ assert.equal(configManager.getCurrentFiat(), 'USD')
configManager.setCurrentFiat('JPY')
var result = configManager.getCurrentFiat()
assert.equal(result, 'JPY')