UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

9 lines (8 loc) 416 B
export const ResizeObserverMockImpl = jest.fn().mockImplementation((callback) => ({ callback, disconnect: jest.fn(), observe: jest.fn(), unobserve: jest.fn() })); export const getLastResizeObserverMock = () => { var _a; return (_a = ResizeObserverMockImpl.mock.results.at(-1)) === null || _a === void 0 ? void 0 : _a.value; }; window.ResizeObserver = window.ResizeObserver || ResizeObserverMockImpl;