Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,6 +5,8 @@ const negate = require('./negate.js');
|
||||
test('negate is a Function', () => {
|
||||
expect(negate).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual([1, 2, 3, 4, 5, 6].filter(negate(n => n % 2 === 0)), [1, 3, 5], "Negates a predicate function");
|
||||
test('Negates a predicate function', () => {
|
||||
expect([1, 2, 3, 4, 5, 6].filter(negate(n => n % 2 === 0)), [1, 3).toEqual(5])
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user