From 10bd5ba6bf3adbc9cacbb76274d5fc7e49cf8a43 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 11 Aug 2014 19:29:44 -0400 Subject: [PATCH] moving torwards fixing tests --- test/mocks/FakeWallet.js | 8 ++++---- test/unit/controllers/controllersSpec.js | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/mocks/FakeWallet.js b/test/mocks/FakeWallet.js index afb587113..d5eceef10 100644 --- a/test/mocks/FakeWallet.js +++ b/test/mocks/FakeWallet.js @@ -1,3 +1,6 @@ +var Wallet = require('../../js/models/core/Wallet'); + + var FakeWallet = function() { this.id = 'testID'; this.balance = 10000; @@ -66,10 +69,7 @@ FakeWallet.prototype.fetchPaymentTx = function(opts, cb) { }; -FakeWallet.prototype.createPaymentTx = function() { - -}; - +FakeWallet.prototype.createPaymentTx = Wallet.prototype.createPaymentTx; FakeWallet.prototype.getBalance = function(cb) { diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index 6945d30a9..3e08db32a 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -153,6 +153,7 @@ describe("Unit: Controllers", function() { scope.$digest(); form = scope.form; sendForm = scope.form2; + scope.sendForm = sendForm; })); it('should have a SendController controller', function() {