diff options
| author | Jason Hong <[email protected]> | 2021-03-07 12:46:58 -0800 |
|---|---|---|
| committer | Jason Hong <[email protected]> | 2021-03-07 12:46:58 -0800 |
| commit | 8af8242af098e970e684cc702dc3345c802f6b19 (patch) | |
| tree | 744a06d418ad55cc7aa825bc847535fd2d7bfc0d /test | |
| parent | da636fe11e99f807d6dabe3c7e813f0a66a2aa9f (diff) | |
| download | faker-8af8242af098e970e684cc702dc3345c802f6b19.tar.xz faker-8af8242af098e970e684cc702dc3345c802f6b19.zip | |
add bicycleType in the vehicle module
Diffstat (limited to 'test')
| -rw-r--r-- | test/vehicle.unit.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/vehicle.unit.js b/test/vehicle.unit.js index f03a7886..d5acadf7 100644 --- a/test/vehicle.unit.js +++ b/test/vehicle.unit.js @@ -71,4 +71,14 @@ describe("vehicle.js", function () { faker.vehicle.vrm.restore(); }); }); + + describe("bicycleType()", function () { + it("returns a random type of bicycle", function () { + sinon.stub(faker.vehicle, 'bicycleType').returns('Adventure Road Bicycle'); + var bicycleType = faker.vehicle.bicycleType(); + + assert.equal(bicycleType, 'Adventure Road Bicycle'); + faker.vehicle.bicycleType.restore(); + }); + }); }); |
