Skip to content

Commit

Permalink
Added test case for enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Exsjabe committed Aug 7, 2023
1 parent 1e94bcd commit 8d686e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __tests__/testCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8d686e9

Please sign in to comment.