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