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