Skip to content

Commit

Permalink
✅ Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
gluons committed Oct 13, 2020
1 parent 28d13d7 commit 149b483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/nvl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ describe('NVL', () => {
expect(nvl(false, true)).toStrictEqual(false);
});
it('shoud return `fallbackValue` when `value` is undefined.', () => {
const notYet = void 0;
const notYet: undefined = void 0;
const now = new Date();

expect(nvl(notYet, now)).toBe(now);
});
it('shoud return `fallbackValue` when `value` is null.', () => {
const nil = null;
const nil: null = null;
const now = new Date();

expect(nvl(nil, now)).toBe(now);
Expand Down

0 comments on commit 149b483

Please sign in to comment.