mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-30 16:01:17 -07:00
Chore: full react hooks eslint compliance (#7040)
This commit is contained in:
@@ -71,7 +71,8 @@ describe("widgets/authentik/component", () => {
|
||||
|
||||
it("computes v1 login/failed counts for entries within the last 24h window", () => {
|
||||
vi.useFakeTimers();
|
||||
vi.setSystemTime(new Date("2026-01-02T00:00:00Z"));
|
||||
// Use midday so a mistaken previous-midnight cutoff would include the 25-hour-old entries.
|
||||
vi.setSystemTime(new Date("2026-01-02T12:00:00Z"));
|
||||
|
||||
const now = Date.now();
|
||||
const oneHourAgo = now - 60 * 60 * 1000;
|
||||
|
||||
Reference in New Issue
Block a user