Skip to content

Commit

Permalink
test: adjust test for testing lockout from Friday to Saturday.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandotfurrer committed Oct 15, 2024
1 parent 5cbe943 commit 0b0ec0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/useIsUserLockedOut.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe('useLockout hook', () => {
getUTCHoursSpy.mockRestore();
});

it('should lock out on Friday at 12am UTC', () => {
getUTCDaySpy.mockReturnValue(5); //Mocking Friday
it('should lock out on Saturday at 12am UTC', () => {
getUTCDaySpy.mockReturnValue(6); //Mocking Saturday
getUTCHoursSpy.mockReturnValue(0); //Mocking 12am UTC

const { result } = renderHook(() => useIsUserLockedOut());
Expand Down

0 comments on commit 0b0ec0b

Please sign in to comment.