Skip to content

Commit 880ed18

Browse files
committed
fix tests
1 parent 4d410ad commit 880ed18

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/sim/executor/utils/subflow-utils.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
/**
2+
* @vitest-environment node
3+
*/
14
import { describe, expect, it, vi } from 'vitest'
5+
import type { ExecutionContext } from '@/executor/types'
26
import type { VariableResolver } from '@/executor/variables/resolver'
37
import { resolveArrayInput } from './subflow-utils'
48

59
describe('resolveArrayInput', () => {
6-
const fakeCtx = {} as any
10+
const fakeCtx = {} as unknown as ExecutionContext
711

812
it('returns arrays as-is', () => {
913
expect(resolveArrayInput(fakeCtx, [1, 2, 3], null)).toEqual([1, 2, 3])

0 commit comments

Comments
 (0)