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