Skip to content

Commit

Permalink
#107 format
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-serb committed Feb 17, 2024
1 parent 962a3ec commit b22ebd3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/helpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getRandomInteger } from '@/engine/helpers.js';

describe('[Helpers] function getRandomInteger', () => {
test('Call without params', () => {
const number = getRandomInteger();
const number = getRandomInteger();

expect(number).toBe(0);
expect(typeof number).toBe('number');
Expand All @@ -19,9 +19,8 @@ describe('[Helpers] function getRandomInteger', () => {
for (let i = 0; i < count; i++) {
const number = getRandomInteger(min, max);

if (!typeof number === 'number' ||
number < min || number >= max) {
isValid = false;
if (!typeof number === 'number' || number < min || number >= max) {
isValid = false;
}
}

Expand Down

0 comments on commit b22ebd3

Please sign in to comment.