teste(info): fixed

This commit is contained in:
Damian Mee 2014-11-11 06:01:02 +01:00
parent 4ebc3db302
commit 75807cd0fa
4 changed files with 19 additions and 2 deletions

View file

@ -27,7 +27,8 @@
"trade": "mockTrader",
"wallet": "mockWallet",
"transfer": "mockWallet",
"idVerifier": "mockVerifier"
"idVerifier": "mockVerifier",
"info": "mockInfo"
},
"settings": {
"bitpay": { },

10
test/mocks/info.js Normal file
View file

@ -0,0 +1,10 @@
'use strict';
module.exports = {
SUPPORTED_MODULES: ['info'],
NAME: 'Mock Info',
config: function config() {},
getAddressLastTx: function verifyUser() {},
getTx: function verifyTransaction() {}
};

View file

@ -21,6 +21,9 @@ module.exports = {
e.name = 'InsufficientFunds';
cb(e);
}
},
newAddress: function(info, cb) {
cb(null, ADDR);
}
};