From ce68b2d1ca6e899f30408634aea6eb2cdafd6a82 Mon Sep 17 00:00:00 2001 From: Joao Pedro Henrique Date: Mon, 26 Dec 2022 19:21:52 -0300 Subject: [PATCH] tests: fix broken test --- .../rpl-crawler/tests/update-checker/update-checker.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/rpl-crawler/tests/update-checker/update-checker.test.ts b/packages/rpl-crawler/tests/update-checker/update-checker.test.ts index 385ef831..d548b86f 100644 --- a/packages/rpl-crawler/tests/update-checker/update-checker.test.ts +++ b/packages/rpl-crawler/tests/update-checker/update-checker.test.ts @@ -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() }) }) }) @@ -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() }) }) })