mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-29 08:35:49 +00:00
Add getAccountInfo method and unit test
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user