diff options
| author | mkg0 <[email protected]> | 2020-08-18 14:51:44 +0200 |
|---|---|---|
| committer | mkg0 <[email protected]> | 2020-08-18 14:51:44 +0200 |
| commit | b08f11c347ae4a5a39ac145ea3620fe754bb9e0d (patch) | |
| tree | 09b5b20996dd653849e4ded6512bd538e3b1de6f /test | |
| parent | 7da419dd8cd94ca8726d757b48645683fe25c0fc (diff) | |
| download | faker-b08f11c347ae4a5a39ac145ea3620fe754bb9e0d.tar.xz faker-b08f11c347ae4a5a39ac145ea3620fe754bb9e0d.zip | |
add time_zone
Diffstat (limited to 'test')
| -rw-r--r-- | test/address.unit.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/address.unit.js b/test/address.unit.js index d63cb78c..3d1e5770 100644 --- a/test/address.unit.js +++ b/test/address.unit.js @@ -509,4 +509,14 @@ describe("address.js", function () { }); }); + describe("timeZone()", function () { + it("returns random timeZone", function () { + sinon.spy(faker.address, 'timeZone'); + var timeZone = faker.address.timeZone(); + assert.ok(timeZone); + assert.ok(faker.address.timeZone.called); + faker.address.timeZone.restore(); + }); + }); + }); |
