Additional tests
This commit is contained in:
@ -7,3 +7,6 @@ test('takeWhile is a Function', () => {
|
||||
test('Removes elements until the function returns true', () => {
|
||||
expect(takeWhile([1, 2, 3, 4], n => n >= 3)).toEqual([1, 2]);
|
||||
});
|
||||
test('Removes elements until the function returns true', () => {
|
||||
expect(takeWhile([1, 2, 3, 4], n => false)).toEqual([1, 2, 3, 4]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user