Skip to content

Commit 18d41e0

Browse files
committed
chore: optimize range-align.spec.tsx
1 parent 1f63ee9 commit 18d41e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/range-aligin.spec.tsx renamed to tests/range-align.spec.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe('the popup arrow should be placed in the correct position.', () => {
1515
};
1616

1717
document.documentElement.scrollLeft = 0;
18+
jest.useFakeTimers();
1819
});
1920

2021
beforeAll(() => {
@@ -76,10 +77,6 @@ describe('the popup arrow should be placed in the correct position.', () => {
7677
});
7778
});
7879

79-
beforeEach(() => {
80-
jest.useFakeTimers();
81-
});
82-
8380
afterEach(() => {
8481
cleanup();
8582
jest.useRealTimers();

0 commit comments

Comments
 (0)