Add getAccountInfo method and unit test

This commit is contained in:
Chris Clark
2015-07-15 16:09:26 -07:00
parent 529a55efb0
commit c073c2b7de
6 changed files with 49 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ const orderCancellationResponse =
require('./fixtures/ordercancellation-response');
const settingsSpecification = require('./fixtures/settings-specification');
const settingsResponse = require('./fixtures/settings-response');
const getAccountInfoResponse = require('./fixtures/account-info-response');
const regularKeyResponse = require('./fixtures/regular-key-response');
const signInput = require('./fixtures/sign-input');
const signOutput = require('./fixtures/sign-output');
@@ -163,6 +164,11 @@ describe('RippleAPI', function() {
_.partial(checkResult, getSettingsResponse, done));
});
it('getAccountInfo', function(done) {
this.api.getAccountInfo(address, {},
_.partial(checkResult, getAccountInfoResponse, done));
});
it('getOrders', function(done) {
this.api.getOrders(address, {},
_.partial(checkResult, getOrdersResponse, done));