aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/config-manager-test.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-02-16 07:56:25 +0800
committerGitHub <noreply@github.com>2017-02-16 07:56:25 +0800
commit3bd23564fbdc5dc81c23f5246956c4de07fb1601 (patch)
treed3db707f1c2e8236c78e143b48e1a2fd9f0323f9 /test/unit/config-manager-test.js
parentf2539d125c2cfe240511f8505e222a9893bf7748 (diff)
parent352bb5cb3941c3a07b383c2400dae337771c6d3a (diff)
downloadtangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.gz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.bz2
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.lz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.xz
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.tar.zst
tangerine-wallet-browser-3bd23564fbdc5dc81c23f5246956c4de07fb1601.zip
Merge pull request #1121 from MetaMask/dev
Merge dev into master
Diffstat (limited to 'test/unit/config-manager-test.js')
-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)
})
})