diff --git a/packages/api/src/tasks/__tests__/checkAlerts.test.ts b/packages/api/src/tasks/__tests__/checkAlerts.test.ts index a3504c2a6..fec519468 100644 --- a/packages/api/src/tasks/__tests__/checkAlerts.test.ts +++ b/packages/api/src/tasks/__tests__/checkAlerts.test.ts @@ -724,7 +724,7 @@ describe('checkAlerts', () => { const now = new Date('2023-11-16T22:12:00.000Z'); - // shoud fetch 5m of logs + // should fetch 5m of logs await processAlert(now, alert); expect(alert.state).toBe('ALERT'); @@ -1136,7 +1136,7 @@ describe('checkAlerts', () => { chartId: '198hki', }); - // shoud fetch 5m of metrics + // should fetch 5m of metrics await processAlert(now, alert); expect(alert.state).toBe('ALERT'); @@ -1261,7 +1261,7 @@ describe('checkAlerts', () => { const now = new Date('2023-11-16T22:12:00.000Z'); - // shoud fetch 5m of logs + // should fetch 5m of logs await processAlert(now, alert); expect(alert.state).toBe('ALERT'); @@ -1658,7 +1658,7 @@ describe('checkAlerts', () => { chartId: '198hki', }); - // shoud fetch 5m of metrics + // should fetch 5m of metrics await processAlert(now, alert); expect(alert.state).toBe('ALERT'); diff --git a/packages/api/src/tasks/index.ts b/packages/api/src/tasks/index.ts index ab414e7e6..5e5a01b6f 100644 --- a/packages/api/src/tasks/index.ts +++ b/packages/api/src/tasks/index.ts @@ -47,7 +47,7 @@ const main = async () => { `); break; default: - throw new Error(`Unkown task name ${taskName}`); + throw new Error(`Unknown task name ${taskName}`); } logger.info( `Task [${taskName}] finished in ${(performance.now() - t0).toFixed(2)} ms`,