diff --git a/tests/range-aligin.spec.tsx b/tests/range-align.spec.tsx similarity index 99% rename from tests/range-aligin.spec.tsx rename to tests/range-align.spec.tsx index 915f8e6a9..b5699a1d2 100644 --- a/tests/range-aligin.spec.tsx +++ b/tests/range-align.spec.tsx @@ -15,6 +15,7 @@ describe('the popup arrow should be placed in the correct position.', () => { }; document.documentElement.scrollLeft = 0; + jest.useFakeTimers(); }); beforeAll(() => { @@ -76,10 +77,6 @@ describe('the popup arrow should be placed in the correct position.', () => { }); }); - beforeEach(() => { - jest.useFakeTimers(); - }); - afterEach(() => { cleanup(); jest.useRealTimers();