import mockViewBySwimlaneData from './__mocks__/mock_viewby_swimlane.json' ; import { hasMatchingPoints } from './has_matching_points' ; const filteredFieldsMatch = [ 'test@kuery-wildcard@' ] ; const filteredFieldsNoMatch = [ 'no-match@kuery-wildcard@' , 'nonexistant' ] ; describe ( 'hasMatchingPoints' , ( ) => { test ( 'is true' , ( ) => { expect ( hasMatchingPoints ( { filteredFields : filteredFieldsMatch , swimlaneData : mockViewBySwimlaneData , } ) ) . toBe ( true ) ; } ) ; test ( 'is false' , ( ) => { expect ( hasMatchingPoints ( { filteredFields : filteredFieldsNoMatch , swimlaneData : mockViewBySwimlaneData , } ) ) . toBe ( false ) ; } ) ; } ) ;