import { shallow } from 'enzyme' ; import React from 'react' ; import { TransactionSummary } from './transaction_summary' ; import * as exampleTransactions from './__fixtures__/transactions' ; describe ( 'TransactionSummary' , ( ) => { describe ( 'render' , ( ) => { const transaction = exampleTransactions . httpOk ; const props = { errorCount : 0 , totalDuration : 0 , transaction , } ; it ( 'renders' , ( ) => { expect ( ( ) => shallow ( < TransactionSummary { ... props } / > ) ) . not . toThrowError ( ) ; } ) ; } ) ; describe ( 'renders RUM transaction without request info' , ( ) => { const transaction = exampleTransactions . httpRumOK ; const props = { errorCount : 0 , totalDuration : 0 , transaction , } ; it ( 'renders' , ( ) => { expect ( ( ) => shallow ( < TransactionSummary { ... props } / > ) ) . not . toThrowError ( ) ; } ) ; } ) ; } ) ;