Test files linted

This commit is contained in:
Angelos Chalaris
2018-08-03 10:39:26 +03:00
parent 4cd1c56387
commit 4f1e8b48b6
153 changed files with 754 additions and 463 deletions

View File

@ -7,9 +7,9 @@ test('randomNumberInRange is a Function', () => {
const lowerLimit = Math.floor(Math.random() * 20);
const upperLimit = Math.floor(lowerLimit + Math.random() * 10);
test('The returned value is a number', () => {
expect(typeof randomNumberInRange(lowerLimit,upperLimit) === 'number').toBeTruthy();
expect(typeof randomNumberInRange(lowerLimit, upperLimit) === 'number').toBeTruthy();
});
const numberForTest = randomNumberInRange(lowerLimit,upperLimit);
const numberForTest = randomNumberInRange(lowerLimit, upperLimit);
test('The returned value lies between provided lowerLimit and upperLimit (both inclusive).', () => {
expect((numberForTest >= lowerLimit) && (numberForTest <= upperLimit)).toBeTruthy();
expect(numberForTest >= lowerLimit && numberForTest <= upperLimit).toBeTruthy();
});