Mock hotkeys.js

This commit is contained in:
Gaetan Craig-Riou
2025-04-09 14:59:37 +10:00
parent 94cc774f27
commit 9e1a80c327

View File

@@ -9,6 +9,14 @@ describe("BulkFormController", () => {
beforeAll(() => {
const application = Application.start();
application.register("bulk-form", bulk_form_controller);
// Mock hotkeys.js
const mockedHotkeys = jest.fn();
global.hotkeys = mockedHotkeys;
});
afterAll(() => {
delete global.hotkeys;
});
describe("Modifying input values", () => {