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