Additional tests

This commit is contained in:
Angelos Chalaris
2018-10-31 20:27:06 +02:00
parent b747a82395
commit 53151c01e5
5 changed files with 28 additions and 0 deletions

View File

@ -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]);
});