import * as React from 'react' ; import { createStore } from '@client/store' ; import { createTestComponent } from '@client/tests/util' ; import { ReactWrapper } from 'enzyme' ; import { SysAdminContentWrapper , SysAdminPageVariant } from './SysAdminContentWrapper' ; describe ( 'Performance content wrapper' , ( ) => { const { store } = createStore ( ) ; describe ( 'Tab menu' , ( ) => { let app ; beforeAll ( async ( ) => { app = ( await createTestComponent ( < SysAdminContentWrapper type = { SysAdminPageVariant . SUBPAGE } headerTitle = "Subpage" backActionHandler = { ( ) => { } } />, store)).component; app . update ( ) ; } ) ; it ( 'shows sub page variant' , ( ) => { expect ( app . find ( '#sub-page-header' ) . hostNodes ( ) ) . toHaveLength ( 1 ) ; } ) ; } ) ; } ) ;