mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Fix account root request ledger argument #121
This commit is contained in:
@@ -144,7 +144,7 @@ describe('Remote', function () {
|
||||
);
|
||||
});
|
||||
|
||||
it('request constructors', function () {
|
||||
describe('request constructors', function () {
|
||||
beforeEach(function () {
|
||||
callback = function () {}
|
||||
remote = new Remote(options);
|
||||
@@ -184,6 +184,13 @@ describe('Remote', function () {
|
||||
var request = remote.request_unl_delete(null, {}, callback);
|
||||
assert(request instanceof Request);
|
||||
});
|
||||
|
||||
it('request account balance with ledger', function() {
|
||||
var request = remote.requestAccountBalance('r4qLSAzv4LZ9TLsR7diphGwKnSEAMQTSjS', 9592219);
|
||||
assert.strictEqual(request.message.command, 'ledger_entry');
|
||||
assert.strictEqual(request.message.account_root, 'r4qLSAzv4LZ9TLsR7diphGwKnSEAMQTSjS');
|
||||
assert.strictEqual(request.message.ledger_index, 9592219);
|
||||
});
|
||||
})
|
||||
|
||||
it('create remote and get pending transactions', function() {
|
||||
|
||||
Reference in New Issue
Block a user