mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
9 lines
249 B
TypeScript
9 lines
249 B
TypeScript
|
import { isDefined } from './isDefined';
|
||
|
|
||
|
test('isDefined', () => {
|
||
|
expect(isDefined(null)).toEqual(false);
|
||
|
expect(isDefined(undefined)).toEqual(false);
|
||
|
expect(isDefined(0)).toEqual(true);
|
||
|
expect(isDefined(false)).toEqual(true);
|
||
|
});
|