1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-22 16:29:09 +01:00

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

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();
});