File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,21 @@ describe('<SuggestInput />', () => {
4545 render (
4646 < SuggestInput placeholder = "Type to search" />
4747 ) ;
48- const wrapper = document . querySelector ( '.frui-form-suggest-input' ) ;
48+ const wrapper =
49+ document . querySelector ( '.frui-form-suggest-input' ) ;
4950 expect ( wrapper ) . toBeInTheDocument ( ) ;
50- expect ( screen . getByPlaceholderText ( 'Type to search' ) ) . toBeInTheDocument ( ) ;
51+ expect (
52+ screen . getByPlaceholderText ( 'Type to search' )
53+ ) . toBeInTheDocument ( ) ;
5154 } ) ;
5255 it ( 'applies error class when error prop set' , ( ) => {
5356 const { container } = render ( < SuggestInput error /> ) ;
54- const wrapper = container . querySelector ( '.frui-form-suggest-input' ) ;
57+ const wrapper =
58+ container . querySelector ( '.frui-form-suggest-input' ) ;
5559 expect ( wrapper ) . toBeInTheDocument ( ) ;
56- expect ( wrapper ?. className ) . toContain ( 'frui-form-suggest-input-error' ) ;
60+ expect (
61+ wrapper ?. className
62+ ) . toContain ( 'frui-form-suggest-input-error' ) ;
5763 } ) ;
5864 it ( 'opens dropdown after typing minimum chars' , ( ) => {
5965 const onQuery = vi . fn ( ) ;
You can’t perform that action at this time.
0 commit comments