Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,5 +5,7 @@ const initial = require('./initial.js');
|
||||
test('initial is a Function', () => {
|
||||
expect(initial).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(initial([1, 2, 3]), [1, 2], "Returns all the elements of an array except the last one");
|
||||
test('Returns all the elements of an array except the last one', () => {
|
||||
expect(initial([1, 2, 3]), [1).toEqual(2])
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user