Spaces:
Build error
Build error
File size: 546 Bytes
d9494a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { isNonEmptyArray } from '@/utils/array/isNonEmptyArray';
describe('isNonEmptyArray', () => {
it('should return true for a non empty array', () => {
expect(isNonEmptyArray([1])).toBe(true);
});
it('should return false for an empty array', () => {
expect(isNonEmptyArray([])).toBe(false);
});
it('should return false for a null value', () => {
expect(isNonEmptyArray(null)).toBe(false);
});
it('should return false for an undefined value', () => {
expect(isNonEmptyArray(undefined)).toBe(false);
});
});
|