Skip to content

Commit

Permalink
tests: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed Dec 26, 2022
1 parent 669ff40 commit ce68b2d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ describe('update-checker', () => {
describe('When request return 404 status', () => {
httpMock.get.mockResolvedValueOnce({ status: 404 })

test('Then update checker should return false', async done => {
test('Then update checker should return false', async () => {
const hasUpdate = await updateChecker(date)
expect(hasUpdate).toBeFalsy()
done()
})
})
})
Expand All @@ -26,10 +25,9 @@ describe('update-checker', () => {
describe('When request return 200 status', () => {
httpMock.get.mockResolvedValueOnce({ status: 200 })

test('Then update checker should return true', async done => {
test('Then update checker should return true', async () => {
const hasUpdate = await updateChecker(date)
expect(hasUpdate).toBeTruthy()
done()
})
})
})
Expand Down

0 comments on commit ce68b2d

Please sign in to comment.