@@ -442,7 +442,7 @@ describe('myzod', () => {
442442 } ,
443443 { }
444444 ) ;
445- expect ( result . content ) . not . toContain ( " export function UserSchema(): myzod.Type<User> {" ) ;
445+ expect ( result . content ) . not . toContain ( ' export function UserSchema(): myzod.Type<User> {' ) ;
446446 } ) ;
447447
448448 it ( 'generate both input & type' , async ( ) => {
@@ -461,24 +461,24 @@ describe('myzod', () => {
461461 ) ;
462462 const wantContains = [
463463 // ScalarsInput
464- " export const definedNonNullAnySchema = myzod.object({});" ,
465- " export function ScalarsInputSchema(): myzod.Type<ScalarsInput> {" ,
466- " date: myzod.date()," ,
467- " email: myzod.string().email().optional().nullable()" ,
464+ ' export const definedNonNullAnySchema = myzod.object({});' ,
465+ ' export function ScalarsInputSchema(): myzod.Type<ScalarsInput> {' ,
466+ ' date: myzod.date(),' ,
467+ ' email: myzod.string().email().optional().nullable()' ,
468468 // User Create Input
469- " export function UserCreateInputSchema(): myzod.Type<UserCreateInput> {" ,
470- " name: myzod.string()," ,
471- " email: myzod.string().email()" ,
469+ ' export function UserCreateInputSchema(): myzod.Type<UserCreateInput> {' ,
470+ ' name: myzod.string(),' ,
471+ ' email: myzod.string().email()' ,
472472 // User
473- " export function UserSchema(): myzod.Type<User> {" ,
473+ ' export function UserSchema(): myzod.Type<User> {' ,
474474 "__typename: myzod.literal('User').optional()," ,
475- " id: myzod.string()," ,
476- " name: myzod.string().optional().nullable()," ,
477- " age: myzod.number().optional().nullable()," ,
478- " email: myzod.string().email().optional().nullable()," ,
479- " isMember: myzod.boolean().optional().nullable()," ,
480- " createdAt: myzod.date()" ,
481- ]
475+ ' id: myzod.string(),' ,
476+ ' name: myzod.string().optional().nullable(),' ,
477+ ' age: myzod.number().optional().nullable(),' ,
478+ ' email: myzod.string().email().optional().nullable(),' ,
479+ ' isMember: myzod.boolean().optional().nullable(),' ,
480+ ' createdAt: myzod.date()' ,
481+ ] ;
482482 for ( const wantContain of wantContains ) {
483483 expect ( result . content ) . toContain ( wantContain ) ;
484484 }
0 commit comments