const expect = require('expect');
const takeRightWhile = require('./takeRightWhile.js');

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)).toEqual([3, 4]);
});
