aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-22 07:49:03 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-22 07:49:03 +0800
commit9123e70434fcd35dcb79a587e6d5c00734cb99e4 (patch)
tree0abefc76caf95f051fcaed3235fea1b8c81ae5ea /test
parent7cf6e372eb38a0ab2abd8256f6fc714855b63aef (diff)
downloadtangerine-wallet-browser-9123e70434fcd35dcb79a587e6d5c00734cb99e4.tar
tangerine-wallet-browser-9123e70434fcd35dcb79a587e6d5c00734cb99e4.tar.gz
tangerine-wallet-browser-9123e70434fcd35dcb79a587e6d5c00734cb99e4.tar.bz2
tangerine-wallet-browser-9123e70434fcd35dcb79a587e6d5c00734cb99e4.tar.lz
tangerine-wallet-browser-9123e70434fcd35dcb79a587e6d5c00734cb99e4.tar.xz
tangerine-wallet-browser-9123e70434fcd35dcb79a587e6d5c00734cb99e4.tar.zst
tangerine-wallet-browser-9123e70434fcd35dcb79a587e6d5c00734cb99e4.zip
Remove entropy from encryption and project.
Diffstat (limited to 'test')
-rw-r--r--test/unit/idStore-migration-test.js2
-rw-r--r--test/unit/idStore-test.js3
-rw-r--r--test/unit/keyring-controller-test.js5
3 files changed, 4 insertions, 6 deletions
diff --git a/test/unit/idStore-migration-test.js b/test/unit/idStore-migration-test.js
index 59801c868..ac8e23d22 100644
--- a/test/unit/idStore-migration-test.js
+++ b/test/unit/idStore-migration-test.js
@@ -52,7 +52,7 @@ describe('IdentityStore to KeyringController migration', function() {
},
})
- idStore._createVault(password, mockVault.seed, null, (err) => {
+ idStore._createVault(password, mockVault.seed, (err) => {
assert.ifError(err, 'createNewVault threw error')
originalKeystore = idStore._idmgmt.keyStore
diff --git a/test/unit/idStore-test.js b/test/unit/idStore-test.js
index 064483ba0..72ecf34d5 100644
--- a/test/unit/idStore-test.js
+++ b/test/unit/idStore-test.js
@@ -11,7 +11,6 @@ describe('IdentityStore', function() {
describe('#createNewVault', function () {
let idStore
let password = 'password123'
- let entropy = 'entripppppyy duuude'
let seedWords
let accounts = []
let originalKeystore
@@ -26,7 +25,7 @@ describe('IdentityStore', function() {
},
})
- idStore.createNewVault(password, entropy, (err, seeds) => {
+ idStore.createNewVault(password, (err, seeds) => {
assert.ifError(err, 'createNewVault threw error')
seedWords = seeds
originalKeystore = idStore._idmgmt.keyStore
diff --git a/test/unit/keyring-controller-test.js b/test/unit/keyring-controller-test.js
index 2527defe3..437441e0e 100644
--- a/test/unit/keyring-controller-test.js
+++ b/test/unit/keyring-controller-test.js
@@ -12,7 +12,6 @@ describe('KeyringController', function() {
let keyringController, state
let password = 'password123'
- let entropy = 'entripppppyy duuude'
let seedWords = 'puzzle seed penalty soldier say clay field arctic metal hen cage runway'
let addresses = ['eF35cA8EbB9669A35c31b5F6f249A9941a812AC1'.toLowerCase()]
let accounts = []
@@ -33,7 +32,7 @@ describe('KeyringController', function() {
// Browser crypto is tested in the integration test suite.
keyringController.encryptor = mockEncryptor
- keyringController.createNewVaultAndKeychain(password, null, function (err, newState) {
+ keyringController.createNewVaultAndKeychain(password, function (err, newState) {
assert.ifError(err)
state = newState
done()
@@ -51,7 +50,7 @@ describe('KeyringController', function() {
it('should set a vault on the configManager', function(done) {
keyringController.configManager.setVault(null)
assert(!keyringController.configManager.getVault(), 'no previous vault')
- keyringController.createNewVaultAndKeychain(password, null, (err, state) => {
+ keyringController.createNewVaultAndKeychain(password, (err, state) => {
assert.ifError(err)
const vault = keyringController.configManager.getVault()
assert(vault, 'vault created')