aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormkg0 <[email protected]>2020-08-18 14:51:44 +0200
committermkg0 <[email protected]>2020-08-18 14:51:44 +0200
commitb08f11c347ae4a5a39ac145ea3620fe754bb9e0d (patch)
tree09b5b20996dd653849e4ded6512bd538e3b1de6f /test
parent7da419dd8cd94ca8726d757b48645683fe25c0fc (diff)
downloadfaker-b08f11c347ae4a5a39ac145ea3620fe754bb9e0d.tar.xz
faker-b08f11c347ae4a5a39ac145ea3620fe754bb9e0d.zip
add time_zone
Diffstat (limited to 'test')
-rw-r--r--test/address.unit.js10
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();
+ });
+ });
+
});