From 2ab426bce8fdf7714e67d3a553b9a348bbbc1e57 Mon Sep 17 00:00:00 2001 From: tcpdumppy <847462026@qq.com> Date: Tue, 4 Jun 2024 11:50:16 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: tcpdumppy <847462026@qq.com> --- packages/api/src/tasks/__tests__/checkAlerts.test.ts | 8 ++++---- packages/api/src/tasks/index.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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`,