create profile working!
This commit is contained in:
parent
74129a6923
commit
7a2906c8d1
12 changed files with 139 additions and 43 deletions
|
|
@ -58,7 +58,7 @@ describe('PayPro (in Wallet) model', function() {
|
|||
});
|
||||
|
||||
var storage = new Storage(walletConfig.storage);
|
||||
storage.setPassphrase('xxx');
|
||||
storage._setPassphrase('xxx');
|
||||
var network = new Network(walletConfig.network);
|
||||
var blockchain = new Blockchain(walletConfig.blockchain);
|
||||
c.storage = storage;
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ describe('Wallet model', function() {
|
|||
});
|
||||
|
||||
var storage = new Storage(walletConfig.storage);
|
||||
storage.setPassphrase('xxx');
|
||||
storage._setPassphrase('xxx');
|
||||
var network = new Network(walletConfig.network);
|
||||
var blockchain = new Blockchain(walletConfig.blockchain);
|
||||
c.storage = storage;
|
||||
|
|
@ -342,7 +342,7 @@ describe('Wallet model', function() {
|
|||
o.opts.reconnectDelay = 100;
|
||||
|
||||
var s = new Storage(walletConfig.storage);
|
||||
s.setPassphrase('xxx');
|
||||
s._setPassphrase('xxx');
|
||||
var w2 = Wallet.fromObj(o,
|
||||
s,
|
||||
new Network(walletConfig.network),
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ describe('WalletLock model', function() {
|
|||
|
||||
beforeEach(function() {
|
||||
storage = new Storage(requireMock('FakeLocalStorage').storageParams);
|
||||
storage.setPassphrase('mysupercoolpassword');
|
||||
storage._setPassphrase('mysupercoolpassword');
|
||||
storage.clearAll();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -32,5 +32,7 @@ module.exports.storageParams = {
|
|||
password: '123',
|
||||
db: new FakeLocalStorage(),
|
||||
sessionStorage: new FakeLocalStorage(),
|
||||
iterations: 1,
|
||||
passphrase: {
|
||||
iterations: 1,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue