wagtail/client/tests/mock-jquery.js

7 wiersze
92 B
JavaScript

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