diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-01 12:22:39 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-01 12:22:39 +0800 |
commit | d33d4f065492d32df35c8eb72a7c51b74bf4b155 (patch) | |
tree | 8f7788329475f00dedf2039364862a6bd4fe298b /test | |
parent | aa21c83470d2fa89a5dc09a49c7ab83cf4e87ad7 (diff) | |
parent | d4e400e5e5a7ba501f210b722f6ccf97be9e6c17 (diff) | |
download | tangerine-wallet-browser-d33d4f065492d32df35c8eb72a7c51b74bf4b155.tar tangerine-wallet-browser-d33d4f065492d32df35c8eb72a7c51b74bf4b155.tar.gz tangerine-wallet-browser-d33d4f065492d32df35c8eb72a7c51b74bf4b155.tar.bz2 tangerine-wallet-browser-d33d4f065492d32df35c8eb72a7c51b74bf4b155.tar.lz tangerine-wallet-browser-d33d4f065492d32df35c8eb72a7c51b74bf4b155.tar.xz tangerine-wallet-browser-d33d4f065492d32df35c8eb72a7c51b74bf4b155.tar.zst tangerine-wallet-browser-d33d4f065492d32df35c8eb72a7c51b74bf4b155.zip |
Merge branch 'master' into FrankieDisclaimer
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/config-manager-test.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js index 7891c5c9e..8974a6bc5 100644 --- a/test/unit/config-manager-test.js +++ b/test/unit/config-manager-test.js @@ -22,6 +22,7 @@ describe('config-manager', function() { describe('#setConfirmed', function() { it('should make getConfirmed return true once set', function() { + assert.equal(configManager.getConfirmed(), false) configManager.setConfirmed(true) var result = configManager.getConfirmed() assert.equal(result, true) @@ -63,8 +64,9 @@ describe('config-manager', function() { provider: { type: 'rpc', rpcTarget: 'foobar' - } + }, } + configManager.setConfirmed(true) configManager.setConfig(testConfig) var testWallet = { @@ -75,6 +77,7 @@ describe('config-manager', function() { var result = configManager.getData() assert.equal(result.wallet.name, testWallet.name, 'wallet name is set') assert.equal(result.config.provider.rpcTarget, testConfig.provider.rpcTarget) + assert.equal(configManager.getConfirmed(), true) testConfig.provider.type = 'something else!' configManager.setConfig(testConfig) @@ -83,6 +86,7 @@ describe('config-manager', function() { assert.equal(result.wallet.name, testWallet.name, 'wallet name is set') assert.equal(result.config.provider.rpcTarget, testConfig.provider.rpcTarget) assert.equal(result.config.provider.type, testConfig.provider.type) + assert.equal(configManager.getConfirmed(), true) }) }) |