@@ -13,7 +13,7 @@ import {
13
13
SearchAttributes ,
14
14
} from '@temporalio/client' ;
15
15
import { msToNumber } from '@temporalio/common/lib/time' ;
16
- import { searchAttributePair , SearchAttributeType } from '@temporalio/common' ;
16
+ import { searchAttributePair , SearchAttributeType , TypedSearchAttributes } from '@temporalio/common' ;
17
17
import { registerDefaultCustomSearchAttributes , RUN_INTEGRATION_TESTS } from './helpers' ;
18
18
19
19
export interface Context {
@@ -183,11 +183,11 @@ if (RUN_INTEGRATION_TESTS) {
183
183
'CustomKeywordField' : [ 'test-value2' ] ,
184
184
'CustomIntField' : [ 42 ] ,
185
185
} ) ;
186
- t . deepEqual ( describedSchedule . action . typedSearchAttributes , [
186
+ t . deepEqual ( describedSchedule . action . typedSearchAttributes , new TypedSearchAttributes ( [
187
187
searchAttributePair ( 'CustomIntField' , SearchAttributeType . INT , 42 ) ,
188
188
// Note that the typed search attribute infers type TEXT from the value.
189
189
searchAttributePair ( 'CustomKeywordField' , SearchAttributeType . TEXT , 'test-value2' ) ,
190
- ] ) ;
190
+ ] ) ) ;
191
191
} finally {
192
192
await handle . delete ( ) ;
193
193
}
@@ -227,11 +227,11 @@ if (RUN_INTEGRATION_TESTS) {
227
227
'CustomKeywordField' : [ 'test-value2' ] ,
228
228
'CustomIntField' : [ 42 ] ,
229
229
} ) ;
230
- t . deepEqual ( describedSchedule . action . typedSearchAttributes , [
230
+ t . deepEqual ( describedSchedule . action . typedSearchAttributes , new TypedSearchAttributes ( [
231
231
searchAttributePair ( 'CustomIntField' , SearchAttributeType . INT , 42 ) ,
232
232
// Note that the typed search attribute "guesses" TEXT, inferred from the value.
233
233
searchAttributePair ( 'CustomKeywordField' , SearchAttributeType . TEXT , 'test-value2' ) ,
234
- ] ) ;
234
+ ] ) ) ;
235
235
} finally {
236
236
await handle . delete ( ) ;
237
237
}
0 commit comments