Files
xahau.js/packages/xrpl/test/utils/hasNextPage.test.ts
2023-02-03 17:03:07 -06:00

17 lines
488 B
TypeScript

import { assert } from 'chai'
import { hasNextPage } from '../../src'
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))
})
})