File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Loader from '../components/Loader';
66describe ( 'unit testing for Loader.tsx' , ( ) => {
77 test ( 'renders a loading icon' , ( ) => {
88 const { container } = render ( < Loader loading = { true } result = { false } /> ) ;
9- expect ( container . firstChild ) . toHaveClass ( 'css-xp4o0b ' ) ;
9+ expect ( container . firstChild ) . toHaveClass ( 'css-1tm071a ' ) ;
1010 } ) ;
1111
1212 test ( 'renders a fail icon' , ( ) => {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const handleResult = (result: boolean): JSX.Element =>
1717// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
1818const Loader = ( { loading, result } ) : JSX . Element =>
1919 loading ? (
20- < ClipLoader color = '#123abc' size = { 30 } loading = { loading } style = { { display : "inline" , margin : "0 auto" } } />
20+ < ClipLoader color = '#123abc' size = { 30 } loading = { loading } />
2121 ) : (
2222 handleResult ( result )
2323 ) ;
Original file line number Diff line number Diff line change 4040 justify-content : center ;
4141 align-items : center ;
4242 }
43+ .loaderChecks span {
44+ margin : 0 auto ;
45+ display : inline ;
46+ }
4347 h2 {
4448 padding-left : 2% ;
4549 padding-right : 2% ;
You can’t perform that action at this time.
0 commit comments