From 5607839b37347c362748e1c991a201dbcf32d6b2 Mon Sep 17 00:00:00 2001 From: zhou-yinyuan Date: Tue, 16 Jul 2024 17:16:21 +0800 Subject: [PATCH] ADM-975 [frontend]: fix comments --- .../__tests__/containers/ReportStep/ReportStep.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx b/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx index 30df88dd6..4646e4af0 100644 --- a/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx +++ b/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx @@ -721,7 +721,7 @@ describe('Report Step', () => { const disposeFunction = showChart(div, false, {}); window.dispatchEvent(new Event('resize')); - disposeFunction && disposeFunction(); + disposeFunction!(); expect(disposeFunction).not.toBeUndefined(); expect(echarts.init).toHaveBeenCalledTimes(1); @@ -734,7 +734,7 @@ describe('Report Step', () => { const div = document.createElement('div'); const disposeFunction = showChart(div, false, {}); - disposeFunction && disposeFunction(); + disposeFunction!(); window.dispatchEvent(new Event('resize')); expect(disposeFunction).not.toBeUndefined(); @@ -748,7 +748,7 @@ describe('Report Step', () => { const div = document.createElement('div'); const disposeFunction = showChart(div, true, {}); - disposeFunction && disposeFunction(); + disposeFunction!(); expect(disposeFunction).not.toBeUndefined(); expect(echarts.init).toHaveBeenCalledTimes(1);