aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/random.unit.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/random.unit.js b/test/random.unit.js
index 201c2267..8f047ee5 100644
--- a/test/random.unit.js
+++ b/test/random.unit.js
@@ -65,10 +65,16 @@ describe("random.js", function () {
};
faker.random.number(opts);
-
+
assert.equal(opts.min, min);
assert.equal(opts.max, max);
});
+
+ it('should return deterministic results when seeded', function() {
+ faker.seed(100);
+ var name = faker.name.findName();
+ assert.equal(name, 'Dulce Jenkins');
+ })
});
describe('arrayElement', function() {