Skip to content

Commit

Permalink
Fix effecthelper to test if EffectHelper is undefined instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
Vylpes committed Nov 19, 2024
1 parent b3b620e commit 0e86d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helpers/EffectHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe("UseEffect", () => {
});
});

describe("GIVEN effect.WhenExpires is null", () => {
describe("GIVEN effect.WhenExpires is undefined", () => {
let result: boolean | undefined;

// nowMock > whenExpires
Expand All @@ -119,7 +119,7 @@ describe("UseEffect", () => {

const userEffect = {
Unused: 1,
WhenExpires: null,
WhenExpires: undefined,
UseEffect: jest.fn(),
Save: jest.fn(),
};
Expand Down

0 comments on commit 0e86d51

Please sign in to comment.