mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Mock hotkeys.js
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user