Skip to content

Commit 814d267

Browse files
committed
CCM-12736: more snapshots
1 parent ac4fa6b commit 814d267

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,27 @@ exports[`RoutingConfig schema snapshot full error 1`] = `
127127
}
128128
]]
129129
`;
130+
131+
exports[`UpdateRoutingConfig invalid with cascade but without cascadeGroupOverrides 1`] = `
132+
[ZodError: [
133+
{
134+
"code": "custom",
135+
"message": "cascade and cascadeGroupOverrides must either both be present or both be absent.",
136+
"path": [
137+
"cascade"
138+
]
139+
}
140+
]]
141+
`;
142+
143+
exports[`UpdateRoutingConfig invalid with cascadeGroupOverrides and without cascade 1`] = `
144+
[ZodError: [
145+
{
146+
"code": "custom",
147+
"message": "cascade and cascadeGroupOverrides must either both be present or both be absent.",
148+
"path": [
149+
"cascadeGroupOverrides"
150+
]
151+
}
152+
]]
153+
`;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ describe('UpdateRoutingConfig', () => {
409409
const res = $UpdateRoutingConfig.safeParse(rest);
410410

411411
expect(res.success).toBe(false);
412+
413+
expect(res.error).toMatchSnapshot();
412414
});
413415

414416
test('invalid with cascade but without cascadeGroupOverrides', () => {
@@ -417,5 +419,7 @@ describe('UpdateRoutingConfig', () => {
417419
const res = $UpdateRoutingConfig.safeParse(rest);
418420

419421
expect(res.success).toBe(false);
422+
423+
expect(res.error).toMatchSnapshot();
420424
});
421425
});

0 commit comments

Comments
 (0)