import * as jobberHooks from '@jobber/hooks';

const mockContainerWidth = (exactWidth) => {
    jest.spyOn(jobberHooks, "useResizeObserver").mockReturnValue([
        { current: document.createElement("div") },
        {
            width: 1200,
            height: 800,
            exactWidth: exactWidth || 1200,
            exactHeight: 800,
        },
    ]);
};

export { mockContainerWidth as m };
