diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/internet.unit.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/internet.unit.js b/test/internet.unit.js index 1f8893a3..a18c1cc4 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("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}$/)); + }); + }); }); |
