Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
10
test/takeRight/takeRight.test.js
Normal file
10
test/takeRight/takeRight.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const takeRight = require('./takeRight.js');
|
||||
|
||||
|
||||
test('takeRight is a Function', () => {
|
||||
expect(takeRight).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(takeRight([1, 2, 3], 2), [2, 3], "Returns an array with n elements removed from the end");
|
||||
t.deepEqual(takeRight([1, 2, 3]), [3], "Returns an array with n elements removed from the end");
|
||||
|
||||
Reference in New Issue
Block a user