Test cleanup and fixes [i-l]
This commit is contained in:
@ -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]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user