Changing instances of the word falsey to falsy for consistency sake, and especially as there is the array FilterFalsy function that is spelled without an e.

This commit is contained in:
Jay Wengrow
2019-07-04 14:41:14 -05:00
parent 3933cce671
commit 30eb6072c3
9 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@ const {all} = require('./_30s.js');
test('all is a Function', () => {
expect(all).toBeInstanceOf(Function);
});
test('Returns true for arrays with no falsey values', () => {
test('Returns true for arrays with no falsy values', () => {
expect(all([4, 1, 2, 3])).toBeTruthy();
});
test('Returns false for arrays with 0', () => {

View File

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

View File

@ -18,7 +18,7 @@ test('Dig target success', () => {
expect(dig(data, 'level3')).toEqual('some data');
});
test('Dig target with falsey value', () => {
test('Dig target with falsy value', () => {
expect(dig(data, 'level3f')).toEqual(false);
});

View File

@ -3,6 +3,6 @@ const {omitBy} = require('./_30s.js');
test('omitBy is a Function', () => {
expect(omitBy).toBeInstanceOf(Function);
});
test('Creates an object composed of the properties the given function returns falsey for', () => {
test('Creates an object composed of the properties the given function returns falsy for', () => {
expect(omitBy({ a: 1, b: '2', c: 3 }, x => typeof x === 'number')).toEqual({ b: '2' });
});