@@ -13,7 +13,7 @@ import {
1313 SearchAttributes ,
1414} from '@temporalio/client' ;
1515import { msToNumber } from '@temporalio/common/lib/time' ;
16- import { searchAttributePair , SearchAttributeType } from '@temporalio/common' ;
16+ import { searchAttributePair , SearchAttributeType , TypedSearchAttributes } from '@temporalio/common' ;
1717import { registerDefaultCustomSearchAttributes , RUN_INTEGRATION_TESTS } from './helpers' ;
1818
1919export interface Context {
@@ -183,11 +183,11 @@ if (RUN_INTEGRATION_TESTS) {
183183 'CustomKeywordField' : [ 'test-value2' ] ,
184184 'CustomIntField' : [ 42 ] ,
185185 } ) ;
186- t . deepEqual ( describedSchedule . action . typedSearchAttributes , [
186+ t . deepEqual ( describedSchedule . action . typedSearchAttributes , new TypedSearchAttributes ( [
187187 searchAttributePair ( 'CustomIntField' , SearchAttributeType . INT , 42 ) ,
188188 // Note that the typed search attribute infers type TEXT from the value.
189189 searchAttributePair ( 'CustomKeywordField' , SearchAttributeType . TEXT , 'test-value2' ) ,
190- ] ) ;
190+ ] ) ) ;
191191 } finally {
192192 await handle . delete ( ) ;
193193 }
@@ -227,11 +227,11 @@ if (RUN_INTEGRATION_TESTS) {
227227 'CustomKeywordField' : [ 'test-value2' ] ,
228228 'CustomIntField' : [ 42 ] ,
229229 } ) ;
230- t . deepEqual ( describedSchedule . action . typedSearchAttributes , [
230+ t . deepEqual ( describedSchedule . action . typedSearchAttributes , new TypedSearchAttributes ( [
231231 searchAttributePair ( 'CustomIntField' , SearchAttributeType . INT , 42 ) ,
232232 // Note that the typed search attribute "guesses" TEXT, inferred from the value.
233233 searchAttributePair ( 'CustomKeywordField' , SearchAttributeType . TEXT , 'test-value2' ) ,
234- ] ) ;
234+ ] ) ) ;
235235 } finally {
236236 await handle . delete ( ) ;
237237 }
0 commit comments