mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-03 04:29:09 +01:00
update deprecated methods
This commit is contained in:
parent
688fe95d78
commit
e12104561e
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user