Test cleanup and fixes [a-b]
This commit is contained in:
@ -5,6 +5,8 @@ const takeRightWhile = require('./takeRightWhile.js');
|
||||
test('takeRightWhile is a Function', () => {
|
||||
expect(takeRightWhile).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(takeRightWhile([1, 2, 3, 4], n => n < 3), [3, 4], 'Removes elements until the function returns true');
|
||||
test('Removes elements until the function returns true', () => {
|
||||
expect(takeRightWhile([1, 2, 3, 4], n => n < 3), [3, 4]).toEqual()
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user