import {Fragment} from 'react'; import {shallow} from 'sentry-test/enzyme'; import BulkController from 'sentry/components/bulkController'; function mountComponent( renderProp: Function, pageIds: string[], defaultSelectedIds?: string[] ) { return shallow( {({ isAllSelected, isPageSelected, selectedIds, onRowToggle, onAllRowsToggle, onPageRowsToggle, }) => { renderProp(isAllSelected, isPageSelected, selectedIds); return ( {isPageSelected && 'whole page selected'} {isAllSelected && 'everything selected'}