Skip to content

Commit

Permalink
Merge pull request #936 from joshua-barnett/patch-1
Browse files Browse the repository at this point in the history
Add failing test for userAgent
  • Loading branch information
Marak authored Aug 24, 2020
2 parents 80c847e + 642739a commit 95b1c09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/internet.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ describe("internet.js", function () {
var ua = faker.internet.userAgent();
assert.ok(ua);
});

it('is deterministic', function () {
faker.seed(1);
var ua1 = faker.internet.userAgent();
faker.seed(1);
var ua2 = faker.internet.userAgent();
assert.equal(ua1, ua2);
});
});

describe("color()", function () {
Expand Down

0 comments on commit 95b1c09

Please sign in to comment.