Test cleanup and fixes [i-l]

This commit is contained in:
Angelos Chalaris
2018-06-18 17:31:56 +03:00
parent f67e121ed8
commit 82f0d6bc52
59 changed files with 358 additions and 452 deletions

View File

@ -1,11 +1,9 @@
const expect = require('expect');
const initializeArrayWithRange = require('./initializeArrayWithRange.js');
test('initializeArrayWithRange is a Function', () => {
test('initializeArrayWithRange is a Function', () => {
expect(initializeArrayWithRange).toBeInstanceOf(Function);
});
test('Initializes an array containing the numbers in the specified range', () => {
expect(initializeArrayWithRange(5), [0, 1, 2, 3, 4).toEqual(5])
test('Initializes an array containing the numbers in the specified range', () => {
expect(initializeArrayWithRange(5)).toEqual([0, 1, 2, 3, 4, 5]);
});