mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-17 17:32:22 +00:00
fix: remove unneeded Math.random test
This commit is contained in:
parent
c9ba9054e3
commit
d5170251c0
1 changed files with 0 additions and 8 deletions
|
|
@ -21,14 +21,6 @@ describe('randomVal', () => {
|
|||
expect(result).to.be.oneOf([1, 2, 3, 4]);
|
||||
});
|
||||
|
||||
it('uses Math.random to determine the property', () => {
|
||||
sandbox.spy(Math, 'random');
|
||||
|
||||
randomVal(obj);
|
||||
|
||||
expect(Math.random).to.be.calledOnce;
|
||||
});
|
||||
|
||||
it('can pass in a predictable random value', () => {
|
||||
sandbox.spy(Math, 'random');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue