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:
@ -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', () => {
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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);
|
||||
});
|
||||
|
||||
|
||||
@ -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' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user