added null and undefined to compact test

This commit is contained in:
azou1
2018-12-03 14:12:04 -05:00
parent 419d2b1a20
commit 63f71b26c7

View File

@ -5,7 +5,7 @@ test('compact is a Function', () => {
expect(compact).toBeInstanceOf(Function);
});
test('Removes falsey values from an array', () => {
expect(compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34])).toEqual([
expect(compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34, null, undefined])).toEqual([
1,
2,
3,