mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix: remove unneeded Math.random test
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user