From 85af5623503584d69f1b67fd456177d3e5130a7e Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Wed, 10 Sep 2014 14:02:11 -0700 Subject: [PATCH] settings: fix tests 5 --- test/test.WalletFactory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.WalletFactory.js b/test/test.WalletFactory.js index 9335adc4a..8712c4121 100644 --- a/test/test.WalletFactory.js +++ b/test/test.WalletFactory.js @@ -424,10 +424,10 @@ describe('WalletFactory model', function() { }); it('should call network.start with private key', function() { var wf = new WalletFactory(config, '0.0.1'); - wf.network.cleanUp = sinon.spy(); - wf.network.start = sinon.spy(); + wf.networks.testnet.cleanUp = sinon.spy(); + wf.networks.testnet.start = sinon.spy(); wf.joinCreateSession('8WtTuiFTkhP5ao7AF2QErSwV39Cbur6pdMebKzQXFqL59RscXM', 'test', null, undefined); - wf.network.start.getCall(0).args[0].privkey.length.should.equal(64); //privkey is hex of private key buffer + wf.networks.testnet.start.getCall(0).args[0].privkey.length.should.equal(64); //privkey is hex of private key buffer }); }); describe('dont break backwards compatibility of wallets', function() {