Skip to content

Commit

Permalink
chore: update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Dec 6, 2023
1 parent da2fb46 commit f0033e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions test/serverStatus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ describe('GET /serverStatus', () => {
expect(dom.window.document.characterSet).toEqual('UTF-8')
dom.window.document.getElementById('versions')

expect(fetch).toHaveBeenCalledTimes(1)
expect(fetch).toHaveBeenCalledWith('http://localhost:3000/health', {
expect(fetch).toHaveBeenCalledTimes(2)
expect(fetch).toHaveBeenNthCalledWith(1, 'http://localhost:3000/health', {
method: 'GET',
})
expect(fetch).toHaveBeenNthCalledWith(2, 'http://localhost:3000/external/sisyfos/health', {
method: 'GET',
})
})
Expand Down
7 changes: 5 additions & 2 deletions test/serverVersions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ describe('GET /serverVersions', () => {
expect(dom.window.document.characterSet).toEqual('UTF-8')
dom.window.document.getElementById('versions')

expect(fetch).toHaveBeenCalledTimes(1)
expect(fetch).toHaveBeenCalledWith('http://localhost:3000/health', {
expect(fetch).toHaveBeenCalledTimes(2)
expect(fetch).toHaveBeenNthCalledWith(1, 'http://localhost:3000/health', {
method: 'GET',
})
expect(fetch).toHaveBeenNthCalledWith(2, 'http://localhost:3000/external/sisyfos/health', {
method: 'GET',
})
})
Expand Down

0 comments on commit f0033e3

Please sign in to comment.