Skip to content

Commit

Permalink
💚 fixci(common): fix testing case
Browse files Browse the repository at this point in the history
  • Loading branch information
萌萌的老胖子 committed Mar 5, 2020
1 parent b8b2102 commit 17cf0f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/graphin/src/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,14 @@ describe('<Graphin />', () => {
fireEvent.click(getByText(/Undo/), {});
});

await wait();
expect(getCanvasEventCount(getByTestId) > prevEventsCount).toBeTruthy();

act(() => {
fireEvent.click(getByText(/Redo/), {});
});

await wait();
expect(getCanvasEventCount(getByTestId) > prevEventsCount).toBeTruthy();
},
TIMEOUT,
Expand Down

0 comments on commit 17cf0f7

Please sign in to comment.