@@ -119,30 +119,6 @@ describe('dedupeOverlappingWorkflowSearchMatches', () => {
119119 secondMatch ,
120120 ] )
121121 } )
122- } )
123-
124- describe ( 'workflowSearchMatchMatchesQuery' , ( ) => {
125- it ( 'does not keep structured resource matches alive from only block or field label text' , ( ) => {
126- const selectorMatch = createMatch ( {
127- id : 'selector-resource' ,
128- blockName : 'Testy' ,
129- fieldTitle : 'Select Presentation' ,
130- subBlockId : 'presentationId' ,
131- subBlockType : 'file-selector' ,
132- kind : 'file' ,
133- rawValue : 'opaque-presentation-id' ,
134- searchText : 'opaque-presentation-id' ,
135- range : undefined ,
136- resource : { kind : 'file' , key : 'opaque-presentation-id' } ,
137- } )
138-
139- expect (
140- workflowSearchMatchMatchesQuery ( { ...selectorMatch , displayLabel : 'Gucci Case' } , 'Test' )
141- ) . toBe ( false )
142- expect (
143- workflowSearchMatchMatchesQuery ( { ...selectorMatch , displayLabel : 'Gucci Case' } , 'Gucci' )
144- ) . toBe ( true )
145- } )
146122
147123 /**
148124 * The bucketed dedupe replaced an O(n^2) linear rescan. This pins it to a
@@ -397,3 +373,27 @@ describe('workflowSearchMatchMatchesQuery', () => {
397373 } )
398374 } )
399375} )
376+
377+ describe ( 'workflowSearchMatchMatchesQuery' , ( ) => {
378+ it ( 'does not keep structured resource matches alive from only block or field label text' , ( ) => {
379+ const selectorMatch = createMatch ( {
380+ id : 'selector-resource' ,
381+ blockName : 'Testy' ,
382+ fieldTitle : 'Select Presentation' ,
383+ subBlockId : 'presentationId' ,
384+ subBlockType : 'file-selector' ,
385+ kind : 'file' ,
386+ rawValue : 'opaque-presentation-id' ,
387+ searchText : 'opaque-presentation-id' ,
388+ range : undefined ,
389+ resource : { kind : 'file' , key : 'opaque-presentation-id' } ,
390+ } )
391+
392+ expect (
393+ workflowSearchMatchMatchesQuery ( { ...selectorMatch , displayLabel : 'Gucci Case' } , 'Test' )
394+ ) . toBe ( false )
395+ expect (
396+ workflowSearchMatchMatchesQuery ( { ...selectorMatch , displayLabel : 'Gucci Case' } , 'Gucci' )
397+ ) . toBe ( true )
398+ } )
399+ } )
0 commit comments