@@ -32,7 +32,7 @@ describe('AutocompleteInput', () => {
3232 getCompletions : jest . fn ( ) . mockImplementation ( async ( ) => data ) ,
3333 } ) as unknown as AutocompleteProvider ;
3434
35- beforeEach ( async ( ) => {
35+ beforeEach ( ( ) => {
3636 TestUtils . stubClient ( ) ;
3737 } ) ;
3838
@@ -67,7 +67,7 @@ describe('AutocompleteInput', () => {
6767 expect ( screen . getByTestId ( 'autocomplete-matches' ) . childNodes ) . toHaveLength ( mockCompletion . length ) ;
6868 } ) ;
6969
70- it ( 'should render selected items passed in via props' , async ( ) => {
70+ it ( 'should render selected items passed in via props' , ( ) => {
7171 const mockProvider = constructMockProvider ( mockCompletion ) ;
7272 const onSelectionChangeMock = jest . fn ( ) ;
7373
@@ -85,7 +85,7 @@ describe('AutocompleteInput', () => {
8585 expect ( selection ) . toHaveLength ( mockCompletion . length ) ;
8686 } ) ;
8787
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' , ( ) => {
8989 const mockProvider = constructMockProvider ( mockCompletion ) ;
9090 const onSelectionChangeMock = jest . fn ( ) ;
9191
@@ -110,7 +110,7 @@ describe('AutocompleteInput', () => {
110110 expect ( onSelectionChangeMock ) . toHaveBeenCalledWith ( [ mockCompletion [ 1 ] ] ) ;
111111 } ) ;
112112
113- it ( 'should render custom selection element when renderSelection() is defined' , async ( ) => {
113+ it ( 'should render custom selection element when renderSelection() is defined' , ( ) => {
114114 const mockProvider = constructMockProvider ( mockCompletion ) ;
115115 const onSelectionChangeMock = jest . fn ( ) ;
116116
@@ -186,7 +186,7 @@ describe('AutocompleteInput', () => {
186186 suggestions . map ( suggestion => expect ( suggestion ) . toHaveClass ( 'mx_AutocompleteInput_suggestion--selected' ) ) ;
187187 } ) ;
188188
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' , ( ) => {
190190 const mockProvider = constructMockProvider ( mockCompletion ) ;
191191 const onSelectionChangeMock = jest . fn ( ) ;
192192
0 commit comments