From a9416ce1cdba64b4e892e0f138f4c01888113f7e Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Thu, 1 May 2014 15:12:38 -0300 Subject: [PATCH] fixed tests --- test/mocks/FakeStorage.js | 4 ++++ test/test.Walletfactory.js | 1 + 2 files changed, 5 insertions(+) diff --git a/test/mocks/FakeStorage.js b/test/mocks/FakeStorage.js index 4e12e25fb..77fe38213 100644 --- a/test/mocks/FakeStorage.js +++ b/test/mocks/FakeStorage.js @@ -3,6 +3,10 @@ var FakeStorage = function(){ this.storage = {}; }; +FakeStorage.prototype._setPassphrase = function (password) { + this.storage.passphrase = password; +}; + FakeStorage.prototype.setGlobal = function (id, payload) { this.storage[id] = payload; }; diff --git a/test/test.Walletfactory.js b/test/test.Walletfactory.js index 4aa5398dd..a3feeba50 100644 --- a/test/test.Walletfactory.js +++ b/test/test.Walletfactory.js @@ -32,6 +32,7 @@ describe('WalletFactory model', function() { port: 80 }, networkName: 'testnet', + passphrase: 'test', }; it('should create the factory', function() {