Add jest tests for twenty-front (#2983)
* Add jest tests for twenty-front Co-authored-by: v1b3m <vibenjamin6@gmail.com> * Fix tests --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { isNonEmptyArray } from '../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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user