Skip to content

Commit c8aa2a0

Browse files
committed
CCM-11492 Update test to allow both default template and conditional
1 parent c16f5bc commit c8aa2a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambdas/backend-client/src/__tests__/schemas/routing-config.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ describe('CreateUpdateRoutingConfig schema', () => {
224224
expect(res.success).toBe(false);
225225
});
226226

227-
test('CascadeItem with both defaultTemplateId and conditionalTemplates is invalid', () => {
227+
test('CascadeItem with both defaultTemplateId and conditionalTemplates is valid', () => {
228228
const res = $CreateUpdateRoutingConfig.safeParse({
229229
...baseInput,
230230
cascade: [
@@ -235,7 +235,7 @@ describe('CreateUpdateRoutingConfig schema', () => {
235235
},
236236
],
237237
});
238-
expect(res.success).toBe(false);
238+
expect(res.success).toBe(true);
239239
});
240240

241241
test('CascadeItem missing both defaultTemplateId and conditionalTemplates is invalid', () => {

0 commit comments

Comments
 (0)