utils.spec.js 412 B

1234567891011
  1. import * as utils from '../src/utils'
  2. test('isNullOrUndefined > returns true for null and undefined', () => {
  3. expect(utils.isNullOrUndefined(null)).toBeTruthy()
  4. expect(utils.isNullOrUndefined(undefined)).toBeTruthy()
  5. })
  6. test('isNullOrUndefined > returns false for non null or undefined', () => {
  7. expect(utils.isNullOrUndefined('')).toBeFalsy()
  8. expect(utils.isNullOrUndefined(10)).toBeFalsy()
  9. })