From 8709d91b37f5edaf8ca46690664c924392d8e55c Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 19 Aug 2014 13:12:05 -0400 Subject: [PATCH] fix test 4 --- test/test.Wallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.Wallet.js b/test/test.Wallet.js index 65738da9e..60667cf53 100644 --- a/test/test.Wallet.js +++ b/test/test.Wallet.js @@ -1402,9 +1402,9 @@ describe('Wallet model', function() { it('#disconnect', function() { var w = cachedCreateW(); - var spy1 = sinon.spy(w.network, 'disconnect'); + var spy1 = sinon.spy(w, 'send'); w.disconnect(); - spy1.callCount.should.equal(1); + spy1.calledOnce.should.be.true; }); });