aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarak <[email protected]>2021-03-09 09:06:19 -0500
committerGitHub <[email protected]>2021-03-09 09:06:19 -0500
commit3cd9d21d24b0796c0505285ec64ce9e75f1979a8 (patch)
tree911279c1b02b92ccfde2786a684a79d9355fd9aa /test
parentb3382c1d7a5ce6d08c372b11068092c35d5fe826 (diff)
parenteb681348d5b5ac1fcafce3eacb78995f57407447 (diff)
downloadfaker-3cd9d21d24b0796c0505285ec64ce9e75f1979a8.tar.xz
faker-3cd9d21d24b0796c0505285ec64ce9e75f1979a8.zip
Merge pull request #1127 from JasonHong1998/more-vehicles
Issue #1097: add bicycleType in the vehicle module
Diffstat (limited to 'test')
-rw-r--r--test/vehicle.unit.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/vehicle.unit.js b/test/vehicle.unit.js
index f03a7886..80504581 100644
--- a/test/vehicle.unit.js
+++ b/test/vehicle.unit.js
@@ -71,4 +71,14 @@ describe("vehicle.js", function () {
faker.vehicle.vrm.restore();
});
});
+
+ describe("bicycle()", function () {
+ it("returns a random type of bicycle", function () {
+ sinon.stub(faker.vehicle, 'bicycle').returns('Adventure Road Bicycle');
+ var bicycle = faker.vehicle.bicycle();
+
+ assert.equal(bicycle, 'Adventure Road Bicycle');
+ faker.vehicle.bicycle.restore();
+ });
+ });
});