import React from 'react' ; import ReactDOM from 'react-dom' ; import ShallowRenderer from 'react-test-renderer/shallow' ; import Home from '../Home.tsx' ; test ( 'renders contents of Home Component' , ( ) => { const container = document . createElement ( 'div' ) ; ReactDOM . render ( < Home />, container); expect ( container . textContent ) . toBeTruthy ( ) ; } ) ; test ( 'uses paddingLeft for improved UI' , ( ) => { const renderer = new ShallowRenderer ( ) ; renderer . render ( < Home />); const result = renderer . getRenderOutput ( ) ; console . log ( result . props . style . paddingLeft ) ; expect ( result . props . style . paddingLeft ) . toBeDefined ( ) ; } ) ;