Skip to content

Commit

Permalink
chore: optimize range-align.spec.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 26, 2024
1 parent 1f63ee9 commit 18d41e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/range-aligin.spec.tsx → tests/range-align.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('the popup arrow should be placed in the correct position.', () => {
};

document.documentElement.scrollLeft = 0;
jest.useFakeTimers();
});

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

beforeEach(() => {
jest.useFakeTimers();
});

afterEach(() => {
cleanup();
jest.useRealTimers();
Expand Down

0 comments on commit 18d41e0

Please sign in to comment.