teste(info): fixed
This commit is contained in:
parent
4ebc3db302
commit
75807cd0fa
4 changed files with 19 additions and 2 deletions
|
|
@ -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
10
test/mocks/info.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
SUPPORTED_MODULES: ['info'],
|
||||
NAME: 'Mock Info',
|
||||
|
||||
config: function config() {},
|
||||
getAddressLastTx: function verifyUser() {},
|
||||
getTx: function verifyTransaction() {}
|
||||
};
|
||||
|
|
@ -21,6 +21,9 @@ module.exports = {
|
|||
e.name = 'InsufficientFunds';
|
||||
cb(e);
|
||||
}
|
||||
},
|
||||
newAddress: function(info, cb) {
|
||||
cb(null, ADDR);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue