From 2e79573aebd5948863ac42c33192685317e3bd18 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:19:04 -0700 Subject: [PATCH] fix test --- tests/integration/tests/regression/issue-886.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/tests/regression/issue-886.test.ts b/tests/integration/tests/regression/issue-886.test.ts index a749db61e..4f20d9817 100644 --- a/tests/integration/tests/regression/issue-886.test.ts +++ b/tests/integration/tests/regression/issue-886.test.ts @@ -13,10 +13,10 @@ describe('Regression: issue 886', () => { ` ); - const r = zodSchemas.models.ModelSchema.parse({}); + const r = zodSchemas.models.ModelSchema.parse({ id: 1 }); expect(r.a).toBe(100); expect(r.b).toBe(''); expect(r.c).toBeInstanceOf(Date); - expect(r.id).toBeUndefined(); + expect(r.id).toBe(1); }); });