window-resizeto
Version:
A window.resizeTo polyfill for test environments like Jest & JSDOM
16 lines (12 loc) • 382 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
function resizeTo(windowObj, width, height) {
Object.assign(windowObj, {
innerWidth: width,
innerHeight: height,
outerWidth: width,
outerHeight: height
}).dispatchEvent(new windowObj.Event('resize'));
}
exports.resizeTo = resizeTo;
//# sourceMappingURL=index.cjs.development.js.map
;