package.cypress-utils.fixtures.fake.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"fake.js","names":["faker","fake","email","internet","exampleEmail","toLowerCase","number","min","max","amount","randomString","string","alphanumeric","quantity","randomDay","percentage","uniqueName","person","firstName","uniqueDepartment","commerce","department","phoneNumber","format","arguments","length","undefined","phone","secureUrl","url","replace","otp","longNumber","decimalNumber","Math","random","Object","defineProperty","get","middleName","lastName","fullName","company","name","location","street","city","zipCode","country","lorem","sentence","productName","word","words","state","domainName","streetAddress"],"sources":["../../../src/cypress-utils/fixtures/fake.js"],"sourcesContent":["import { faker } from \"@faker-js/faker\";\n\nconst fake = {};\n\nconst email = () => faker.internet.exampleEmail().toLowerCase();\n\nconst number = () => faker.number.int({ min: 3, max: 9 });\n\nconst amount = () => faker.number.int({ min: 1, max: 5 });\n\nconst randomString = () => faker.string.alphanumeric(10);\n\nconst quantity = () => faker.number.int({ min: 1, max: 3 });\n\nconst randomDay = () => faker.number.int({ min: 1, max: 27 });\n\nconst percentage = () => faker.number.int({ min: 1, max: 2 });\n\nconst uniqueName = () =>\n faker.person.firstName() + faker.number.int({ min: 1, max: 100 });\n\nconst uniqueDepartment = () =>\n faker.commerce.department() + faker.number.int({ min: 1, max: 100 });\n\nconst phoneNumber = (format = \"9#########\") => faker.phone.number(format);\n\nconst secureUrl = () => faker.internet.url().replace(\"http:\", \"https:\");\n\nconst otp = () => faker.number.int({ min: 100000, max: 999999 });\n\nconst longNumber = () => faker.number.int({ min: 1000, max: 9999 });\n\nconst decimalNumber = () =>\n faker.number.int({ min: 1000, max: 9999 }) + Math.random();\n\nObject.defineProperty(fake, \"firstName\", { get: faker.person.firstName });\nObject.defineProperty(fake, \"middleName\", { get: faker.person.middleName });\nObject.defineProperty(fake, \"lastName\", { get: faker.person.lastName });\nObject.defineProperty(fake, \"fullName\", { get: faker.person.fullName });\nObject.defineProperty(fake, \"companyName\", { get: faker.company.name });\nObject.defineProperty(fake, \"streetName\", { get: faker.location.street });\nObject.defineProperty(fake, \"city\", { get: faker.location.city });\nObject.defineProperty(fake, \"zipCode\", { get: faker.location.zipCode });\nObject.defineProperty(fake, \"country\", { get: faker.location.country });\nObject.defineProperty(fake, \"sentence\", { get: faker.lorem.sentence });\nObject.defineProperty(fake, \"email\", { get: email });\nObject.defineProperty(fake, \"number\", { get: number });\nObject.defineProperty(fake, \"amount\", { get: amount });\nObject.defineProperty(fake, \"projectName\", { get: faker.commerce.productName });\nObject.defineProperty(fake, \"department\", { get: faker.commerce.department });\nObject.defineProperty(fake, \"word\", { get: faker.lorem.word });\nObject.defineProperty(fake, \"words\", { get: faker.lorem.words });\nObject.defineProperty(fake, \"randomString\", { get: randomString });\nObject.defineProperty(fake, \"state\", { get: faker.location.state });\nObject.defineProperty(fake, \"quantity\", { get: quantity });\nObject.defineProperty(fake, \"randomDay\", { get: randomDay });\nObject.defineProperty(fake, \"percentage\", { get: percentage });\nObject.defineProperty(fake, \"uniqueName\", { get: uniqueName });\nObject.defineProperty(fake, \"uniqueDepartment\", { get: uniqueDepartment });\nObject.defineProperty(fake, \"url\", { get: faker.internet.url });\nObject.defineProperty(fake, \"secureUrl\", { get: secureUrl });\nObject.defineProperty(fake, \"domain\", { get: faker.internet.domainName });\nObject.defineProperty(fake, \"otp\", { get: otp });\nObject.defineProperty(fake, \"longNumber\", { get: longNumber });\nObject.defineProperty(fake, \"decimalNumber\", { get: decimalNumber });\nObject.defineProperty(fake, \"streetAddress\", {\n get: faker.location.streetAddress,\n});\nfake.phoneNumber = phoneNumber;\n\nexport { fake };\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,iBAAiB;AAEvC,IAAMC,IAAI,GAAG,CAAC,CAAC;AAEf,IAAMC,KAAK,GAAG,SAARA,KAAKA,CAAA;EAAA,OAASF,KAAK,CAACG,QAAQ,CAACC,Y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