We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60433ce commit 3c157e2Copy full SHA for 3c157e2
1 file changed
apps/web/src/features/upload/utils.test.ts
@@ -17,8 +17,12 @@ describe('getZodTypeName', () => {
17
it('should parse a z.boolean()', () => {
18
expect(getZodTypeName(z.boolean())).toMatchObject({ isOptional: false, success: true, typeName: 'ZodBoolean' });
19
});
20
- it('should parse a z.set(z.string())', () => {
21
- expect(getZodTypeName(z.set(z.string()))).toMatchObject({ isOptional: false, success: true, typeName: 'ZodSet' });
+ it('should parse a z.set(z.enum([]))', () => {
+ expect(getZodTypeName(z.set(z.enum(['a', 'b', 'c'])))).toMatchObject({
22
+ isOptional: false,
23
+ success: true,
24
+ typeName: 'ZodSet'
25
+ });
26
27
it('should parse a z.string().optional()', () => {
28
expect(getZodTypeName(z.string().optional())).toMatchObject({
0 commit comments