Added getAccountAddress and tests which seem to fail for some reason
This commit is contained in:
parent
6998dc1cc1
commit
1664022bfa
@ -8,6 +8,7 @@ var rpc = require('../jsonrpc')
|
||||
var bitcoinAPI = {
|
||||
backupWallet: 'backupwallet',
|
||||
getAccount: 'getaccount',
|
||||
getAccountAddress: 'getaccountaddress',
|
||||
getBalance: 'getbalance',
|
||||
getBlockCount: 'getblockcount',
|
||||
getBlockNumber: 'getblocknumber',
|
||||
|
||||
@ -34,6 +34,15 @@ vows.describe('api').addBatch({
|
||||
'is valid': function(account){
|
||||
assert.ok(account, "Update test variables with a valid address?");
|
||||
},
|
||||
'after getting the account\'s address again': {
|
||||
topic: function(account, client) {
|
||||
client.getAccountAddress(account, this.callback);
|
||||
},
|
||||
'should be the same as the original':
|
||||
function(address) {
|
||||
assert.equal(address, test.address);
|
||||
}
|
||||
}
|
||||
},
|
||||
'getDifficulty': {
|
||||
topic: function(client) { client.getDifficulty(this.callback); },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user