mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix(test): wrong assertion after changing expiration interval
This commit is contained in:
@@ -136,7 +136,7 @@ describe("Login Route test", () => {
|
||||
expect(session!.cookie.expires).toBeUndefined();
|
||||
expect(session!.loggedIn).toBe(true);
|
||||
|
||||
const expectedExpirationDate = dayjs().utc().add(1, "hour").toDate();
|
||||
const expectedExpirationDate = dayjs().utc().add(1, "day").toDate();
|
||||
expect(expiry?.getTime()).toBeGreaterThan(new Date().getTime());
|
||||
expect(expiry?.getTime()).toBeLessThanOrEqual(expectedExpirationDate.getTime());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user