refactor: remove seeding from randomVal

This commit is contained in:
Blade Barringer
2016-09-24 21:25:14 -05:00
parent 136e2de125
commit 331993c1df
2 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -40,12 +40,11 @@ describe('shared.fns.randomVal', () => {
let result = randomVal(obj, {
user,
seed: 100,
randomFunc: randomSpy,
predictableRandom: randomSpy,
});
expect(Math.random).to.not.be.called;
expect(randomSpy).to.be.calledOnce;
expect(randomSpy).to.be.calledWith(user, 100);
expect(result).to.equal(2);
});