import { getTraceItems } from './get_trace_items' ; import { SearchParamsMock , inspectSearchParams , } from '../../utils/test_helpers' ; describe ( 'trace queries' , ( ) => { let mock ; afterEach ( ( ) => { mock . teardown ( ) ; } ) ; it ( 'fetches a trace' , async ( ) => { mock = await inspectSearchParams ( ( setup ) => getTraceItems ( 'foo' , setup , 0 , 50000 ) ) ; expect ( mock . params ) . toMatchSnapshot ( ) ; } ) ; } ) ;