Add getBalanceSheet() to RippleAPI

This commit is contained in:
wltsmrz
2015-09-22 07:59:27 -07:00
parent 323e402e0c
commit 806a4e823f
13 changed files with 288 additions and 2 deletions

View File

@@ -29,7 +29,6 @@ const orderbook = {
};
function checkResult(expected, schemaName, response) {
// console.log(JSON.stringify(response, null, 2));
assert.deepEqual(response, expected);
if (schemaName) {
schemaValidator.schemaValidate(schemaName, response);
@@ -202,6 +201,11 @@ describe('RippleAPI', function() {
_.partial(checkResult, responses.getBalances, 'getBalances'));
});
it('getBalanceSheet', function() {
return this.api.getBalanceSheet(address).then(
_.partial(checkResult, responses.getBalanceSheet, undefined));
});
describe('getTransaction', () => {
it('getTransaction - payment', function() {
return this.api.getTransaction(hashes.VALID_TRANSACTION_HASH).then(