@@ -32,7 +32,7 @@ describe('AutocompleteInput', () => {
32
32
getCompletions : jest . fn ( ) . mockImplementation ( async ( ) => data ) ,
33
33
} ) as unknown as AutocompleteProvider ;
34
34
35
- beforeEach ( async ( ) => {
35
+ beforeEach ( ( ) => {
36
36
TestUtils . stubClient ( ) ;
37
37
} ) ;
38
38
@@ -67,7 +67,7 @@ describe('AutocompleteInput', () => {
67
67
expect ( screen . getByTestId ( 'autocomplete-matches' ) . childNodes ) . toHaveLength ( mockCompletion . length ) ;
68
68
} ) ;
69
69
70
- it ( 'should render selected items passed in via props' , async ( ) => {
70
+ it ( 'should render selected items passed in via props' , ( ) => {
71
71
const mockProvider = constructMockProvider ( mockCompletion ) ;
72
72
const onSelectionChangeMock = jest . fn ( ) ;
73
73
@@ -85,7 +85,7 @@ describe('AutocompleteInput', () => {
85
85
expect ( selection ) . toHaveLength ( mockCompletion . length ) ;
86
86
} ) ;
87
87
88
- it ( 'should call onSelectionChange() when an item is removed from selection' , async ( ) => {
88
+ it ( 'should call onSelectionChange() when an item is removed from selection' , ( ) => {
89
89
const mockProvider = constructMockProvider ( mockCompletion ) ;
90
90
const onSelectionChangeMock = jest . fn ( ) ;
91
91
@@ -110,7 +110,7 @@ describe('AutocompleteInput', () => {
110
110
expect ( onSelectionChangeMock ) . toHaveBeenCalledWith ( [ mockCompletion [ 1 ] ] ) ;
111
111
} ) ;
112
112
113
- it ( 'should render custom selection element when renderSelection() is defined' , async ( ) => {
113
+ it ( 'should render custom selection element when renderSelection() is defined' , ( ) => {
114
114
const mockProvider = constructMockProvider ( mockCompletion ) ;
115
115
const onSelectionChangeMock = jest . fn ( ) ;
116
116
@@ -186,7 +186,7 @@ describe('AutocompleteInput', () => {
186
186
suggestions . map ( suggestion => expect ( suggestion ) . toHaveClass ( 'mx_AutocompleteInput_suggestion--selected' ) ) ;
187
187
} ) ;
188
188
189
- it ( 'should remove the last added selection when backspace is pressed in empty input' , async ( ) => {
189
+ it ( 'should remove the last added selection when backspace is pressed in empty input' , ( ) => {
190
190
const mockProvider = constructMockProvider ( mockCompletion ) ;
191
191
const onSelectionChangeMock = jest . fn ( ) ;
192
192
0 commit comments