Skip to content

Commit

Permalink
ADM-975 [frontend]: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-yinyuan committed Jul 16, 2024
1 parent 13a6d47 commit 5607839
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/__tests__/containers/ReportStep/ReportStep.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand All @@ -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);
Expand Down

0 comments on commit 5607839

Please sign in to comment.