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 initial = require('./initial.js');
test('initial is a Function', () => {
test('initial is a Function', () => {
expect(initial).toBeInstanceOf(Function);
});
test('Returns all the elements of an array except the last one', () => {
expect(initial([1, 2, 3]), [1).toEqual(2])
test('Returns all the elements of an array except the last one', () => {
expect(initial([1, 2, 3])).toEqual([1, 2])''
});