Skip to content

Commit c264481

Browse files
committed
fix tests
1 parent 0e9bcdf commit c264481

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

apps/sim/executor/variables/resolvers/block.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,9 @@ describe('BlockResolver', () => {
257257
expect(result).toBe('"hello"')
258258
})
259259

260-
it.concurrent('should format string for function block in template literal', () => {
260+
it.concurrent('should format object for function block', () => {
261261
const resolver = new BlockResolver(createTestWorkflow())
262-
const result = resolver.formatValueForBlock('hello', 'function', true)
263-
expect(result).toBe('hello')
264-
})
265-
266-
it.concurrent('should format object for function block in template literal', () => {
267-
const resolver = new BlockResolver(createTestWorkflow())
268-
const result = resolver.formatValueForBlock({ a: 1 }, 'function', true)
262+
const result = resolver.formatValueForBlock({ a: 1 }, 'function')
269263
expect(result).toBe('{"a":1}')
270264
})
271265

0 commit comments

Comments
 (0)