Fix DefaultActiveUserState test always failing locally (#7701)

The test always fails locally due to first setting a local time, and then fetching it through UTC which may have different timezones.
This commit is contained in:
Oscar Hinton 2024-01-26 14:34:42 +01:00 committed by GitHub
parent 40aefe0a99
commit c0e157610e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ describe("DefaultActiveUserState", () => {
expect(resolvedValue).toBeTruthy();
expect(resolvedValue.array).toHaveLength(1);
expect(resolvedValue.date.getUTCFullYear()).toBe(2020);
expect(resolvedValue.date.getFullYear()).toBe(2020);
expect(rejectedError).toBeFalsy();
});