From 8b7bdd431c7dd38f004847771083df6684d28f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferreira?= Date: Sat, 13 Jun 2015 17:36:13 -0300 Subject: Including a MAC Address generator --- test/internet.unit.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/internet.unit.js b/test/internet.unit.js index 1f8893a3..679881a7 100644 --- a/test/internet.unit.js +++ b/test/internet.unit.js @@ -132,4 +132,11 @@ describe("internet.js", function () { assert.ok(color.match(/^#[a-f0-9]{6}$/)); }); }); + + describe("macAddess()", function () { + it("returns a random MAC address with 6 hexadecimal digits", function () { + var mac = faker.internet.mac(); + assert.ok(mac.match(/^([a-f0-9]{2}:){5}[a-f0-9]{2}$/)); + }); + }); }); -- cgit v1.2.3 From 888c6469bfeec476333e16e3be4217b9cdf33753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferreira?= Date: Sat, 13 Jun 2015 17:38:59 -0300 Subject: Fixing method name references to mac generator in tests --- test/internet.unit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/internet.unit.js b/test/internet.unit.js index 679881a7..a18c1cc4 100644 --- a/test/internet.unit.js +++ b/test/internet.unit.js @@ -133,7 +133,7 @@ describe("internet.js", function () { }); }); - describe("macAddess()", function () { + describe("mac()", function () { it("returns a random MAC address with 6 hexadecimal digits", function () { var mac = faker.internet.mac(); assert.ok(mac.match(/^([a-f0-9]{2}:){5}[a-f0-9]{2}$/)); -- cgit v1.2.3