aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarak <[email protected]>2015-07-06 08:41:31 -0700
committerMarak <[email protected]>2015-07-06 08:41:31 -0700
commit760a2c5e92011cc60286e55447e6cc168c1b86c6 (patch)
tree62a1c2247e0c9c2e7c49e36bdabdbd763a298c73 /test
parent376068f29223ade15278acb75731e23db2098b0a (diff)
parent4a5de1ab467cba4dd4b61ed5a16f6816fb7c38f9 (diff)
downloadfaker-760a2c5e92011cc60286e55447e6cc168c1b86c6.tar.xz
faker-760a2c5e92011cc60286e55447e6cc168c1b86c6.zip
[merge] country_code branch
Diffstat (limited to 'test')
-rw-r--r--test/address.unit.js18
1 files changed, 14 insertions, 4 deletions
diff --git a/test/address.unit.js b/test/address.unit.js
index b03a3be4..f6b299a1 100644
--- a/test/address.unit.js
+++ b/test/address.unit.js
@@ -63,7 +63,7 @@ describe("address.js", function () {
assert.ok(faker.address.citySuffix.calledOnce);
});
});
-
+
describe("streetName()", function () {
beforeEach(function () {
@@ -100,8 +100,8 @@ describe("address.js", function () {
assert.ok(faker.address.streetSuffix.calledOnce);
});
});
-
-
+
+
describe("streetAddress()", function () {
beforeEach(function () {
@@ -157,7 +157,7 @@ describe("address.js", function () {
});
});
});
-
+
describe("secondaryAddress()", function () {
it("randomly chooses an Apt or Suite number", function () {
@@ -196,6 +196,16 @@ describe("address.js", function () {
});
});
+ describe("countryCode()", function () {
+ it("returns random countryCode", function () {
+ sinon.spy(faker.address, 'countryCode');
+ var countryCode = faker.address.countryCode();
+ assert.ok(countryCode);
+ assert.ok(faker.address.countryCode.called);
+ faker.address.countryCode.restore();
+ });
+ });
+
describe("state()", function () {
it("returns random state", function () {
sinon.spy(faker.address, 'state');