Skip to content

Commit

Permalink
console: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelJankoski committed Nov 21, 2023
1 parent e16b8eb commit 66ebf06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sdk/js/src/api/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ describe('API class', () => {

it('respects the search query', () => {
api.ApplicationRegistry.List(undefined, { limit: 2, page: 1 })

expect(api._connector.handleRequest).toHaveBeenCalledTimes(1)
expect(api._connector.handleRequest).toHaveBeenCalledWith(
'get',
Expand All @@ -125,9 +126,5 @@ describe('API class', () => {
undefined,
true,
)
expect(api._connector.handleRequest).toHaveBeenCalledWith('get', '/applications', undefined, {
limit: 2,
page: 1,
})
})
})

0 comments on commit 66ebf06

Please sign in to comment.