Skip to content

Commit 31c52e5

Browse files
committed
wip(service-automation): type the kept-spellings test output (#19939)
Claude-Session: https://claude.ai/code/session_01RPo7FUd6bSnAfkWMAKi848 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0d7eb27 commit 31c52e5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/services/service-automation/src/builtin/logic-nodes.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ describe('assignment node — config-shape parity (Studio + examples)', () => {
120120
engine.registerFlow('assign_flow', assignmentFlow({ assignments: { day: '{TODAY()}', who: '{$User.Id}' } }, ['day', 'who']));
121121
const result = await engine.execute('assign_flow', { userId: 'usr_1' } as any);
122122
expect(result.success).toBe(true);
123-
expect(result.output!.who).toBe('usr_1');
124-
expect(String(result.output!.day)).toMatch(/^\d{4}-\d{2}-\d{2}$/);
123+
const output = result.output as Record<string, unknown>;
124+
expect(output.who).toBe('usr_1');
125+
expect(String(output.day)).toMatch(/^\d{4}-\d{2}-\d{2}$/);
125126
});
126127
});

0 commit comments

Comments
 (0)