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

@@ -1,5 +1,9 @@
'use strict'; // eslint-disable-line strict
function buildList(options) {
return new Array(options.count).fill(options.item);
}
module.exports = {
generateAddress: require('./generate-address.json'),
getAccountInfo: require('./get-account-info.json'),
@@ -61,6 +65,10 @@ module.exports = {
},
getTrustlines: {
filtered: require('./get-trustlines.json'),
moreThan400Items: buildList({
item: require('./trustline-item.json'),
count: 401
}),
all: require('./get-trustlines-all.json')
},
getLedger: {