mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00: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:
@@ -189,7 +189,7 @@ describe("DefaultActiveUserState", () => {
|
|||||||
|
|
||||||
expect(resolvedValue).toBeTruthy();
|
expect(resolvedValue).toBeTruthy();
|
||||||
expect(resolvedValue.array).toHaveLength(1);
|
expect(resolvedValue.array).toHaveLength(1);
|
||||||
expect(resolvedValue.date.getUTCFullYear()).toBe(2020);
|
expect(resolvedValue.date.getFullYear()).toBe(2020);
|
||||||
expect(rejectedError).toBeFalsy();
|
expect(rejectedError).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user