Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
wanpan11 committed Jun 6, 2024
1 parent 86452b9 commit dee79c8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/Mentions.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit dee79c8

Please sign in to comment.