import type { HistogramItem } from '../../../../../common/correlations/types' ; import { replaceHistogramDotsWithBars } from './index' ; describe ( 'TransactionDistributionChart' , ( ) => { describe ( 'replaceHistogramDotsWithBars' , ( ) => { it ( 'does the thing' , ( ) => { const mockHistogram = [ { doc_count : 10 } , { doc_count : 10 } , { doc_count : 0 } , { doc_count : 0 } , { doc_count : 0 } , { doc_count : 10 } , { doc_count : 10 } , { doc_count : 0 } , { doc_count : 10 } , { doc_count : 10 } , ] as HistogramItem [ ] ; expect ( replaceHistogramDotsWithBars ( mockHistogram ) ) . toEqual ( [ { doc_count : 10 } , { doc_count : 10 } , { doc_count : 0.0001 } , { doc_count : 0.0001 } , { doc_count : 0.0001 } , { doc_count : 10 } , { doc_count : 10 } , { doc_count : 0.0001 } , { doc_count : 10 } , { doc_count : 10 } , ] ) ; } ) ; } ) ; } ) ;