Skip to content

Commit bcfdf93

Browse files
committed
test: keep react testing event behavior
1 parent a576840 commit bcfdf93

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

tests/index.spec.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { fireEvent } from '@testing-library/dom';
2-
import { cleanup, render, act } from '@testing-library/react';
1+
import { cleanup, fireEvent, render, act } from '@testing-library/react';
32
import { resetWarned } from '@rc-component/util';
43
import React from 'react';
54
import type { DrawerProps } from '../src';

tests/motion.spec.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { fireEvent } from '@testing-library/dom';
2-
import { render } from '@testing-library/react';
1+
import { render, fireEvent } from '@testing-library/react';
32
import React from 'react';
43
import Drawer from '../src';
54

0 commit comments

Comments
 (0)