import { assert } from 'chai'

import { hasNextPage } from '../../src'
import fixtures from '../fixtures/xahaud'

describe('hasNextPage', function () {
  it('returns true when response has marker', function () {
    const firstPage = fixtures.ledger_data.firstPage
    assert.isTrue(hasNextPage(firstPage))
  })

  it('returns false when response does not have marker', function () {
    const lastPage = fixtures.ledger_data.lastPage
    assert.isFalse(hasNextPage(lastPage))
  })
})
