mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
18 lines
490 B
TypeScript
18 lines
490 B
TypeScript
import { assert } from 'chai'
|
|
|
|
import { hasNextPage } from 'xrpl-local'
|
|
|
|
import fixtures from '../fixtures/rippled'
|
|
|
|
describe('hasNextPage', function () {
|
|
it('returns true when response has marker', function () {
|
|
const firstPage = fixtures.ledger_data.first_page
|
|
assert.isTrue(hasNextPage(firstPage))
|
|
})
|
|
|
|
it('returns false when response does not have marker', function () {
|
|
const lastPage = fixtures.ledger_data.last_page
|
|
assert.isFalse(hasNextPage(lastPage))
|
|
})
|
|
})
|