Skip to content

Commit 9ac92fc

Browse files
committed
test: add test case
1 parent 1e8679c commit 9ac92fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/StrictMode.spec.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ describe('StrictMode', () => {
5050
act(() => {
5151
jest.runAllTimers();
5252
});
53+
expect(ref.current.inMotion()).toBeTruthy();
5354
expect(node).not.toHaveClass('transition-appear-start');
5455
expect(node).toHaveClass('transition-appear-active');
5556

5657
// Trigger End
5758
fireEvent.transitionEnd(node);
5859
expect(node).not.toHaveClass('transition-appear');
5960

61+
expect(ref.current.inMotion()).toBeFalsy();
6062
expect(ref.current.nativeElement).toBe(node);
6163
});
6264
});

0 commit comments

Comments
 (0)