import { renderToString } from 'react-dom/server'; import { Provider } from 'react-redux'; import LayoutLoggedOut from '../logged-out'; jest.mock( 'calypso/lib/signup/step-actions', () => ( {} ) ); describe( 'index', () => { describe( 'when trying to renderToString() LayoutLoggedOut', () => { test( "doesn't throw an exception", () => { expect( () => { renderToString( {}, getState: () => ( { ui: {}, notices: { items: {}, }, purchases: { hasLoadedUserPurchasesFromServer: false, }, sites: { items: {}, }, } ), subscribe: () => {}, } } > ); } ).not.toThrow(); } ); } ); } );