0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 10:58:52 +01:00
wagtail/client/tests/mock-jquery.js
2021-05-03 17:05:56 +01:00

7 lines
92 B
JavaScript

const jQueryObj = {
on: jest.fn(),
off: jest.fn(),
};
global.jQuery = () => jQueryObj;