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