mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
import { isNotNullOrUndefined } from './array';
|
|
|
|
describe('util/array', () => {
|
|
it.each`
|
|
a | exp
|
|
${null} | ${false}
|
|
${undefined} | ${false}
|
|
${{ name: 'foo' }} | ${true}
|
|
`('.isNotNullOrUndefined', ({ a, exp }) => {
|
|
expect(isNotNullOrUndefined(a)).toEqual(exp);
|
|
});
|
|
});
|