Skip to content

Commit

Permalink
add a test to additional query param required bug
Browse files Browse the repository at this point in the history
  • Loading branch information
annguy3n committed Jul 7, 2021
1 parent 9b963c3 commit 63d99d1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/sdk-rtl/src/paging.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,19 @@ describe('paging', () => {
expect(actual.options?.timeout).toEqual(99)
})

it('works without other query params', async () => {
const actual = await pager(sdk, () =>
mockRawResponseSuccess(
transport,
mockedRows,
mockRawResponse('/api/4.0/alerts/search?limit=3&offset=0')
)
)
expect(actual).toBeDefined()
expect(actual.limit).toEqual(3)
expect(actual.offset).toEqual(0)
})

it('works on relative url', async () => {
const actual = await pager(sdk, () =>
mockRawResponseSuccess(
Expand Down

0 comments on commit 63d99d1

Please sign in to comment.