diff options
| author | Marak <[email protected]> | 2014-09-13 22:39:11 +0200 |
|---|---|---|
| committer | Marak <[email protected]> | 2014-09-13 22:39:11 +0200 |
| commit | 2608f1bd3ec74f1f693df149a9ef8aabe560b55b (patch) | |
| tree | 035fb2c861dcffd29e4ca9ea88fc21c73ab5f9c4 /test | |
| parent | 9424f3e6a851a0bcf6e8420a654bf33d6c0bae64 (diff) | |
| download | faker-2608f1bd3ec74f1f693df149a9ef8aabe560b55b.tar.xz faker-2608f1bd3ec74f1f693df149a9ef8aabe560b55b.zip | |
[api] Added Internet.userAgent #16
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 59af887a..97502e51 100644 --- a/test/internet.unit.js +++ b/test/internet.unit.js @@ -83,6 +83,13 @@ describe("internet.js", function () { }); }); + describe("userAgent()", function () { + it("returns a valid user-agent", function () { + var ua = faker.Internet.userAgent(); + assert.ok(ua); + }); + }); + describe("color()", function () { it("returns a valid hex value (like #ffffff)", function () { var color = faker.Internet.color(100, 100, 100); |
