update deprecated methods

This commit is contained in:
Raghav Sethi 2024-12-17 21:57:12 -05:00
parent 688fe95d78
commit e12104561e

View File

@ -155,13 +155,13 @@ function getRandomValue(variableName) {
case "randomLastName": case "randomLastName":
return faker.name.lastName(); // Random last name return faker.name.lastName(); // Random last name
case "randomFullName": case "randomFullName":
return faker.name.findName(); // Random full name return faker.name.fullName(); // Random full name
case "randomNamePrefix": case "randomNamePrefix":
return faker.name.prefix(); // Random name prefix (e.g., Mr., Ms.) return faker.name.prefix(); // Random name prefix (e.g., Mr., Ms.)
case "randomNameSuffix": case "randomNameSuffix":
return faker.name.suffix(); // Random name suffix (e.g., MD, Jr.) return faker.name.suffix(); // Random name suffix (e.g., MD, Jr.)
case "randomPhoneNumber": case "randomPhoneNumber":
return faker.phone.phoneNumber(); // Random phone number return faker.phone.number(); // Random phone number
case "randomCity": case "randomCity":
return faker.address.city(); // Random city name return faker.address.city(); // Random city name
case "randomStreetName": case "randomStreetName":
@ -185,7 +185,7 @@ function getRandomValue(variableName) {
case "randomProduct": case "randomProduct":
return faker.commerce.productName(); // Random product name return faker.commerce.productName(); // Random product name
case "randomCompanyName": case "randomCompanyName":
return faker.company.companyName(); // Random company name return faker.company.name(); // Random company name
case "randomEmail": case "randomEmail":
return faker.internet.email(); // Random email address return faker.internet.email(); // Random email address
default: default: