aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-02-10 10:17:50 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-02-10 10:17:50 +0800
commit65c84ac4b2a8a4355bff63690d34e52a4a45a561 (patch)
tree69c02a96a370d8444655d0b6b72899ec69d07dfe /test/unit
parent1d0fcf129c8bd7174aecccca3acf54ee83215d19 (diff)
downloadtangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.gz
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.bz2
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.lz
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.xz
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.tar.zst
tangerine-wallet-browser-65c84ac4b2a8a4355bff63690d34e52a4a45a561.zip
Delete all code related to disclaimers.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/config-manager-test.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js
index c6f60192f..05324e741 100644
--- a/test/unit/config-manager-test.js
+++ b/test/unit/config-manager-test.js
@@ -14,37 +14,6 @@ describe('config-manager', function() {
configManager = configManagerGen()
})
- describe('confirmation', function() {
-
- describe('#getConfirmedDisclaimer', function() {
- it('should return undefined if no previous key exists', function() {
- var result = configManager.getConfirmedDisclaimer()
- assert.ok(!result)
- })
- })
-
- describe('#setConfirmedDisclaimer', function() {
- it('should make getConfirmedDisclaimer return true once set', function() {
- assert.equal(configManager.getConfirmedDisclaimer(), undefined)
- configManager.setConfirmedDisclaimer(true)
- var result = configManager.getConfirmedDisclaimer()
- assert.equal(result, true)
- })
-
- it('should be able to set undefined', function() {
- configManager.setConfirmedDisclaimer(undefined)
- var result = configManager.getConfirmedDisclaimer()
- assert.equal(result, undefined)
- })
-
- it('should persist to local storage', function() {
- configManager.setConfirmedDisclaimer(true)
- var data = configManager.getData()
- assert.equal(data.isDisclaimerConfirmed, true)
- })
- })
- })
-
describe('#setConfig', function() {
it('should set the config key', function () {
@@ -68,7 +37,6 @@ describe('config-manager', function() {
rpcTarget: 'foobar'
},
}
- configManager.setConfirmedDisclaimer(true)
configManager.setConfig(testConfig)
var testWallet = {
@@ -79,7 +47,6 @@ 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.getConfirmedDisclaimer(), true)
testConfig.provider.type = 'something else!'
configManager.setConfig(testConfig)
@@ -88,7 +55,6 @@ 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.getConfirmedDisclaimer(), true)
})
})