diff options
| author | Prince Dorcis <[email protected]> | 2021-03-10 22:34:18 +0000 |
|---|---|---|
| committer | Prince Dorcis <[email protected]> | 2021-03-10 22:34:18 +0000 |
| commit | 10e305dd0f0d2c976852dadb9ddf139df70e5bf9 (patch) | |
| tree | bb5d532b9423105a5a139d27ab1ddda8194ae45a /test | |
| parent | 4b23a7e3c5bff053b32569f51b8bb01333d6fbcb (diff) | |
| parent | 3cd9d21d24b0796c0505285ec64ce9e75f1979a8 (diff) | |
| download | faker-10e305dd0f0d2c976852dadb9ddf139df70e5bf9.tar.xz faker-10e305dd0f0d2c976852dadb9ddf139df70e5bf9.zip | |
Merge branch 'master' of https://github.com/Marak/faker.js into master
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(); + }); + }); }); |
