Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
9
test/truthCheckCollection/truthCheckCollection.test.js
Normal file
9
test/truthCheckCollection/truthCheckCollection.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const truthCheckCollection = require('./truthCheckCollection.js');
|
||||
|
||||
|
||||
test('truthCheckCollection is a Function', () => {
|
||||
expect(truthCheckCollection).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(truthCheckCollection([{ user: 'Tinky-Winky', sex: 'male' }, { user: 'Dipsy', sex: 'male' }], 'sex'), true, "second argument is truthy on all elements of a collection");
|
||||
|
||||
Reference in New Issue
Block a user