File size: 541 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import isUndefined from '../../utils/isUndefined';
describe('isUndefined', () => {
it('should return true when it is an undefined value', () => {
expect(isUndefined(undefined)).toBeTruthy();
});
it('should return false when it is not an undefined value', () => {
expect(isUndefined(null)).toBeFalsy();
expect(isUndefined('')).toBeFalsy();
expect(isUndefined('undefined')).toBeFalsy();
expect(isUndefined(0)).toBeFalsy();
expect(isUndefined([])).toBeFalsy();
expect(isUndefined({})).toBeFalsy();
});
});
|