import { Options , generate } from "generate-password" ; import { chance } from "_/helpers" ; param options return export function mockRegisterRequest ( options ? ) { return { email : chance . email ( { domain : "example.com" } ) , password : generate ( { length : 32 , numbers : true , symbols : true , uppercase : true , excludeSimilarCharacters : true , strict : true , ... options } ) } ; } param options return export function mockRegisterRequestWithInvalidEmail ( options ? ) { return { ... mockRegisterRequest ( options ) , email : chance . string ( ) } ; }