|
1 | 1 | import userEvent from '@testing-library/user-event'; |
2 | | -import { logDOM } from '@testing-library/dom'; |
3 | 2 |
|
4 | 3 | import { |
5 | 4 | createCollection, |
|
8 | 7 | runAllMicroTasks, |
9 | 8 | } from '../../../../test/utils'; |
10 | 9 | import { createAutocomplete } from '../createAutocomplete'; |
11 | | -import { createElement } from 'react'; |
12 | 10 |
|
13 | 11 | describe('getInputProps', () => { |
14 | 12 | beforeEach(() => { |
@@ -325,7 +323,7 @@ describe('getInputProps', () => { |
325 | 323 | }); |
326 | 324 | }); |
327 | 325 |
|
328 | | - test('calls getSources', async () => { |
| 326 | + test('calls getSources', () => { |
329 | 327 | const onStateChange = jest.fn(); |
330 | 328 | const getSources = jest.fn((..._args: any[]) => { |
331 | 329 | return [ |
@@ -685,7 +683,7 @@ describe('getInputProps', () => { |
685 | 683 | }); |
686 | 684 | }); |
687 | 685 |
|
688 | | - test('does not call onHighlight when no selectedItemId', async () => { |
| 686 | + test('does not call onHighlight when no selectedItemId', () => { |
689 | 687 | const onStateChange = jest.fn(); |
690 | 688 | const onHighlight = jest.fn(); |
691 | 689 | const { inputElement } = createPlayground(createAutocomplete, { |
@@ -763,7 +761,7 @@ describe('getInputProps', () => { |
763 | 761 | }); |
764 | 762 | }); |
765 | 763 |
|
766 | | - test('resets the state when panel is closed', async () => { |
| 764 | + test('resets the state when panel is closed', () => { |
767 | 765 | const onStateChange = jest.fn(); |
768 | 766 | const { inputElement } = createPlayground(createAutocomplete, { |
769 | 767 | onStateChange, |
|
0 commit comments