mock-request-animation-frame
Version:
Helper function for Jest + RAF
14 lines (13 loc) • 368 B
TypeScript
/**
* This helper function will mock the clientHeight and clientWidth of the window object.
*
* @param options
* @param {number} options.height defaults to 1000
* @param {number} options.width defaults to 1000
*
*/
declare const mockClientWindow: (options?: Partial<{
height: number;
width: number;
}> | undefined) => void;
export { mockClientWindow };