Files
30-seconds-of-code/test/bifurcate/bifurcate.test.js
Angelos Chalaris a78f5db260 Test migration to jest by hand
Apparently using regular expressions is way easier.
2018-06-18 15:15:56 +03:00

11 lines
345 B
JavaScript

const expect = require('expect');
const bifurcate = require('./bifurcate.js');
test('bifurcate is a Function', () => {
expect(bifurcate).toBeInstanceOf(Function);
});
t.deepEqual(bifurcate([ 'beep', 'boop', 'foo', 'bar' ], [ true, true, false, true ]), [ ['beep', 'boop', 'bar'], ['foo'] ], 'Splits the collection into two groups');