mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
FE: Buggy test fix (#33694)
This commit is contained in:
parent
3b812660d2
commit
85032e8aa0
1 changed files with 8 additions and 0 deletions
|
|
@ -19,6 +19,14 @@ const WINDOWS_SCRIPT: IScript = {
|
|||
updated_at: "2021-01-01",
|
||||
};
|
||||
|
||||
beforeAll(() => {
|
||||
jest.useFakeTimers();
|
||||
jest.setSystemTime(new Date("2025-05-02T00:00:00Z")); // "over 4 years ago" after created_at
|
||||
});
|
||||
afterAll(() => {
|
||||
jest.useRealTimers();
|
||||
});
|
||||
|
||||
describe("ScriptListItem", () => {
|
||||
const onDelete = jest.fn();
|
||||
const onClickScript = jest.fn();
|
||||
|
|
|
|||
Loading…
Reference in a new issue