19 lines
389 B
TypeScript
19 lines
389 B
TypeScript
// Copyright 2017-2021 @polkadot/util authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { isNull } from '.';
|
|
|
|
describe('isNull', (): void => {
|
|
it('returns true when a null value', (): void => {
|
|
expect(
|
|
isNull(null)
|
|
).toEqual(true);
|
|
});
|
|
|
|
it('returns false on non-null values', (): void => {
|
|
expect(
|
|
isNull()
|
|
).toEqual(false);
|
|
});
|
|
});
|