Skip to content

Commit 94b36fa

Browse files
committed
fix(image-generator): retain dropdown literal types in regression tests
1 parent bc161f4 commit 94b36fa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/lib/workflows/application/replace-workflow-state.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ describe('replaceWorkflowState', () => {
141141
...BLOCK,
142142
type: 'image_generator_v2',
143143
subBlocks: Object.fromEntries(
144-
Object.entries(settings).map(([id, value]) => [id, { id, type: 'dropdown', value }])
144+
Object.entries(settings).map(([id, value]) => [
145+
id,
146+
{ id, type: 'dropdown' as const, value },
147+
])
145148
),
146149
}
147150
await expect(

0 commit comments

Comments
 (0)