Skip to content

Commit c8c63dd

Browse files
test(core): lint code
1 parent be7a193 commit c8c63dd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/autocomplete-core/src/__tests__/getInputProps.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import userEvent from '@testing-library/user-event';
2-
import { logDOM } from '@testing-library/dom';
32

43
import {
54
createCollection,
@@ -8,7 +7,6 @@ import {
87
runAllMicroTasks,
98
} from '../../../../test/utils';
109
import { createAutocomplete } from '../createAutocomplete';
11-
import { createElement } from 'react';
1210

1311
describe('getInputProps', () => {
1412
beforeEach(() => {
@@ -325,7 +323,7 @@ describe('getInputProps', () => {
325323
});
326324
});
327325

328-
test('calls getSources', async () => {
326+
test('calls getSources', () => {
329327
const onStateChange = jest.fn();
330328
const getSources = jest.fn((..._args: any[]) => {
331329
return [
@@ -685,7 +683,7 @@ describe('getInputProps', () => {
685683
});
686684
});
687685

688-
test('does not call onHighlight when no selectedItemId', async () => {
686+
test('does not call onHighlight when no selectedItemId', () => {
689687
const onStateChange = jest.fn();
690688
const onHighlight = jest.fn();
691689
const { inputElement } = createPlayground(createAutocomplete, {
@@ -763,7 +761,7 @@ describe('getInputProps', () => {
763761
});
764762
});
765763

766-
test('resets the state when panel is closed', async () => {
764+
test('resets the state when panel is closed', () => {
767765
const onStateChange = jest.fn();
768766
const { inputElement } = createPlayground(createAutocomplete, {
769767
onStateChange,

0 commit comments

Comments
 (0)