diff --git a/tests/Mentions.spec.tsx b/tests/Mentions.spec.tsx index 9929374..939ea6d 100644 --- a/tests/Mentions.spec.tsx +++ b/tests/Mentions.spec.tsx @@ -44,15 +44,11 @@ describe('Mentions', () => { jest.useFakeTimers(); }); - describe('focus test', () => { - beforeEach(() => { - jest.useFakeTimers(); - }); - - afterEach(() => { - jest.useRealTimers(); - }); + afterEach(() => { + jest.useRealTimers(); + }); + describe('focus test', () => { it('autoFocus', () => { const { container } = renderMentions({ autoFocus: true }); expect(document.activeElement).toBe(container.querySelector('textarea'));