Fix account root request ledger argument #121

This commit is contained in:
wltsmrz
2014-10-26 15:39:17 -07:00
parent 9a5c9aea75
commit bc1f9f8a28
2 changed files with 13 additions and 6 deletions

View File

@@ -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() {