Add test of getTrustlines with multiple pages of results (#850)

This commit is contained in:
Elliot Lee
2018-02-14 15:57:35 -08:00
committed by GitHub
parent e311b74dac
commit b89eae5cb1
5 changed files with 78 additions and 0 deletions

View File

@@ -995,6 +995,12 @@ describe('RippleAPI', function() {
responses.getTrustlines.filtered, 'getTrustlines'));
});
it('getTrustlines - more than 400 items', function() {
const options = {limit: 401};
return this.api.getTrustlines(addresses.THIRD_ACCOUNT, options).then(
_.partial(checkResult, responses.getTrustlines.moreThan400Items, 'getTrustlines'));
});
it('getTrustlines - no options', function() {
return this.api.getTrustlines(address).then(
_.partial(checkResult, responses.getTrustlines.all, 'getTrustlines'));