From 8d686e9633dc05651f8bacad66331fc2d9ade594 Mon Sep 17 00:00:00 2001 From: Exsjabe Date: Mon, 7 Aug 2023 10:00:53 +0200 Subject: [PATCH] Added test case for enum --- __tests__/testCases.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/__tests__/testCases.ts b/__tests__/testCases.ts index 801f729..a88ea56 100644 --- a/__tests__/testCases.ts +++ b/__tests__/testCases.ts @@ -108,6 +108,16 @@ const testCases: TestCaseGroup[] = [ ], ], }, + { + name: 'z.enum()', + testCases: [ + [ + 'z.enum(["a", "b"])', + z.enum(['a', 'b']), + { bsonType: 'string', enum: ['a', 'b'] }, + ], + ], + }, ] export default testCases