File tree Expand file tree Collapse file tree
apps/sim/executor/variables Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ describe('VariableResolver function block inputs', () => {
127127 )
128128
129129 expect ( result . resolvedInputs . code ) . toBe (
130+ // biome-ignore lint/suspicious/noTemplateCurlyInString: intentional — asserting template literal is preserved
130131 'return `value: ${JSON.stringify(globalThis["__blockRef_0"])}`'
131132 )
132133 expect ( result . displayInputs . code ) . toBe ( 'return `value: "hello world"`' )
@@ -139,11 +140,14 @@ describe('VariableResolver function block inputs', () => {
139140 const result = resolver . resolveInputsForFunctionBlock (
140141 ctx ,
141142 'function' ,
143+ // biome-ignore lint/suspicious/noTemplateCurlyInString: intentional — asserting template literal is preserved
142144 { code : 'return `${String(<Producer.result>)}`' } ,
143145 block
144146 )
145147
148+ // biome-ignore lint/suspicious/noTemplateCurlyInString: intentional — asserting template literal is preserved
146149 expect ( result . resolvedInputs . code ) . toBe ( 'return `${String(globalThis["__blockRef_0"])}`' )
150+ // biome-ignore lint/suspicious/noTemplateCurlyInString: intentional — asserting template literal is preserved
147151 expect ( result . displayInputs . code ) . toBe ( 'return `${String("hello world")}`' )
148152 expect ( result . contextVariables ) . toEqual ( { __blockRef_0 : 'hello world' } )
149153 } )
You can’t perform that action at this time.
0 commit comments