UNPKG

window-resizeto

Version:

A window.resizeTo polyfill for test environments like Jest & JSDOM

9 lines (6 loc) 273 B
// we don't check `if (!('resizeTo' in window))` first because JSDOM sets it to // a function that throws a "Not Implemented" error, so it will always exist import { resizeTo } from './index' window.resizeTo = function (width, height) { resizeTo(this, width, height) }