fix tests
This commit is contained in:
parent
4262e6b274
commit
e8c9da46b6
4 changed files with 8 additions and 5 deletions
|
|
@ -29,7 +29,11 @@ module.exports = {
|
||||||
completeTransaction: function(tx, txHash) {
|
completeTransaction: function(tx, txHash) {
|
||||||
calls.status = true;
|
calls.status = true;
|
||||||
},
|
},
|
||||||
recordBill: function(fingerprint, trade) { }
|
recordBill: function(fingerprint, trade) { },
|
||||||
|
addOutgoingTx: function(session, tx, cb) {
|
||||||
|
cb(null, {satoshis: tx.satoshis});
|
||||||
|
},
|
||||||
|
sentCoins: function() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,6 @@ module.exports = {
|
||||||
|
|
||||||
config: function config() {},
|
config: function config() {},
|
||||||
getAddressLastTx: function verifyUser() {},
|
getAddressLastTx: function verifyUser() {},
|
||||||
getTx: function verifyTransaction() {}
|
getTx: function verifyTransaction() {},
|
||||||
|
checkAddress: function checkAddress() {}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -42,5 +42,3 @@ module.exports.getBalanceCalls = function() {
|
||||||
module.exports.wasSendCalled = function() {
|
module.exports.wasSendCalled = function() {
|
||||||
return calls.send;
|
return calls.send;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ describe('Plugins', function() {
|
||||||
/* jshint expr: true */
|
/* jshint expr: true */
|
||||||
response.should.be.an.Object;
|
response.should.be.an.Object;
|
||||||
response.should.have.property('statusCode');
|
response.should.have.property('statusCode');
|
||||||
response.statusCode.should.equal(204);
|
response.statusCode.should.equal(201);
|
||||||
/* jshint expr: false */
|
/* jshint expr: false */
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue