aboutsummaryrefslogtreecommitdiff
path: root/test/random.unit.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/random.unit.js')
-rw-r--r--test/random.unit.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/random.unit.js b/test/random.unit.js
index cdeb07f1..39ef4a0f 100644
--- a/test/random.unit.js
+++ b/test/random.unit.js
@@ -85,6 +85,12 @@ describe("random.js", function () {
assert.equal(name, 'Eva Jenkins');
})
+ it('should return deterministic results when seeded with 0', function() {
+ faker.seed(0);
+ var name = faker.name.findName();
+ assert.strictEqual(name, 'Lola Sporer');
+ })
+
it('should return deterministic results when seeded with array - one element', function() {
faker.seed([10]);
var name = faker.name.findName();