diff options
| author | Marak <[email protected]> | 2021-03-09 09:06:19 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-09 09:06:19 -0500 |
| commit | 3cd9d21d24b0796c0505285ec64ce9e75f1979a8 (patch) | |
| tree | 911279c1b02b92ccfde2786a684a79d9355fd9aa /test | |
| parent | b3382c1d7a5ce6d08c372b11068092c35d5fe826 (diff) | |
| parent | eb681348d5b5ac1fcafce3eacb78995f57407447 (diff) | |
| download | faker-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.js | 10 |
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(); + }); + }); }); |
