aboutsummaryrefslogtreecommitdiff
path: root/test/internet.unit.js
diff options
context:
space:
mode:
authorMatthew Bergman <[email protected]>2014-02-17 22:33:03 -0500
committerMatthew Bergman <[email protected]>2014-02-17 22:33:03 -0500
commit31d526a4897d150ffd90ebddd2ec1291fdaedc72 (patch)
tree0d89bf88523b377f25e5e8fb7160ce10bfbc057e /test/internet.unit.js
parent47527ec7391b15f915b25e983da80e98360ed04a (diff)
parentd470a1009058a02706c53379c5019ad43ed924e1 (diff)
downloadfaker-31d526a4897d150ffd90ebddd2ec1291fdaedc72.tar.xz
faker-31d526a4897d150ffd90ebddd2ec1291fdaedc72.zip
Merge pull request #70 from FotoVerite/master
Keep up to date.
Diffstat (limited to 'test/internet.unit.js')
-rw-r--r--test/internet.unit.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/internet.unit.js b/test/internet.unit.js
index d7d823cf..44879c37 100644
--- a/test/internet.unit.js
+++ b/test/internet.unit.js
@@ -82,4 +82,11 @@ describe("internet.js", function () {
assert.equal(parts.length, 4);
});
});
+
+ describe("color()", function () {
+ it("returns a valid hex value (like #ffffff)", function () {
+ var color = Faker.Internet.color(100, 100, 100);
+ assert.ok(color.match(/^#[a-f0-9]{6}$/));
+ });
+ });
});