From 0e86d510f8b8b03be2fd927b77551e043af5decd Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Tue, 19 Nov 2024 18:48:43 +0000 Subject: [PATCH] Fix effecthelper to test if EffectHelper is undefined instead of null --- tests/helpers/EffectHelper.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/helpers/EffectHelper.test.ts b/tests/helpers/EffectHelper.test.ts index 343f06c..5d8365d 100644 --- a/tests/helpers/EffectHelper.test.ts +++ b/tests/helpers/EffectHelper.test.ts @@ -110,7 +110,7 @@ describe("UseEffect", () => { }); }); - describe("GIVEN effect.WhenExpires is null", () => { + describe("GIVEN effect.WhenExpires is undefined", () => { let result: boolean | undefined; // nowMock > whenExpires @@ -119,7 +119,7 @@ describe("UseEffect", () => { const userEffect = { Unused: 1, - WhenExpires: null, + WhenExpires: undefined, UseEffect: jest.fn(), Save: jest.fn(), };