aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason Hong <[email protected]>2021-03-07 17:36:00 -0800
committerJason Hong <[email protected]>2021-03-07 17:36:00 -0800
commiteb681348d5b5ac1fcafce3eacb78995f57407447 (patch)
treecbace6ac00f0510e4230f06dcee47e387c1ee84c /lib
parent8af8242af098e970e684cc702dc3345c802f6b19 (diff)
downloadfaker-eb681348d5b5ac1fcafce3eacb78995f57407447.tar.xz
faker-eb681348d5b5ac1fcafce3eacb78995f57407447.zip
fix bicycleType to bicycle
Diffstat (limited to 'lib')
-rw-r--r--lib/locales/en/vehicle/bicycle.js (renamed from lib/locales/en/vehicle/bicycle_type.js)0
-rw-r--r--lib/locales/en/vehicle/index.js2
-rw-r--r--lib/vehicle.js8
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/locales/en/vehicle/bicycle_type.js b/lib/locales/en/vehicle/bicycle.js
index 519e3525..519e3525 100644
--- a/lib/locales/en/vehicle/bicycle_type.js
+++ b/lib/locales/en/vehicle/bicycle.js
diff --git a/lib/locales/en/vehicle/index.js b/lib/locales/en/vehicle/index.js
index be00eef9..4a2c8172 100644
--- a/lib/locales/en/vehicle/index.js
+++ b/lib/locales/en/vehicle/index.js
@@ -4,4 +4,4 @@ vehicle.manufacturer = require("./manufacturer");
vehicle.model = require("./model");
vehicle.type = require("./vehicle_type");
vehicle.fuel = require("./fuel");
-vehicle.bicycleType = require("./bicycle_type"); \ No newline at end of file
+vehicle.bicycle = require("./bicycle"); \ No newline at end of file
diff --git a/lib/vehicle.js b/lib/vehicle.js
index 57326a36..125055e6 100644
--- a/lib/vehicle.js
+++ b/lib/vehicle.js
@@ -131,15 +131,15 @@ var Vehicle = function (faker) {
};
/**
- * bicycleType
+ * bicycle
*
- * @method faker.vehicle.bicycleType
+ * @method faker.vehicle.bicycle
*/
- self.bicycleType = function () {
+ self.bicycle = function () {
return faker.random.arrayElement(faker.definitions.vehicle.bicycle_type);
};
- self.bicycleType.schema = {
+ self.bicycle.schema = {
"description": "Generates a type of bicycle",
"sampleResults": ["Adventure Road Bicycle", "City Bicycle", "Recumbent Bicycle"]
};