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() {