import React from 'react' ; import renderer from 'react-test-renderer' ; import Page401 from './Page401' ; describe ( 'Error Page 401 tests' , ( ) => { it ( 'Test LoadingPage renders' , ( ) => { const errorPage = renderer . create ( < Page401 />).toJSON(); expect ( errorPage ) . toMatchSnapshot ( ) ; } ) ; } ) ;