mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Add test of getTrustlines with multiple pages of results (#850)
This commit is contained in:
8
test/fixtures/responses/index.js
vendored
8
test/fixtures/responses/index.js
vendored
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user