fix tests

This commit is contained in:
Josh Harvey 2015-03-19 16:10:57 -04:00
parent 4262e6b274
commit e8c9da46b6
4 changed files with 8 additions and 5 deletions

View file

@ -29,7 +29,11 @@ module.exports = {
completeTransaction: function(tx, txHash) {
calls.status = true;
},
recordBill: function(fingerprint, trade) { }
recordBill: function(fingerprint, trade) { },
addOutgoingTx: function(session, tx, cb) {
cb(null, {satoshis: tx.satoshis});
},
sentCoins: function() {}
};

View file

@ -6,5 +6,6 @@ module.exports = {
config: function config() {},
getAddressLastTx: function verifyUser() {},
getTx: function verifyTransaction() {}
getTx: function verifyTransaction() {},
checkAddress: function checkAddress() {}
};

View file

@ -42,5 +42,3 @@ module.exports.getBalanceCalls = function() {
module.exports.wasSendCalled = function() {
return calls.send;
};

View file

@ -209,7 +209,7 @@ describe('Plugins', function() {
/* jshint expr: true */
response.should.be.an.Object;
response.should.have.property('statusCode');
response.statusCode.should.equal(204);
response.statusCode.should.equal(201);
/* jshint expr: false */
done();