export default { skip_if_ssr: true, async test({ assert, component, target, window }) { assert.equal(window.pageYOffset, 0); const event = new window.Event('scroll'); Object.defineProperties(window, { pageYOffset: { value: 234, configurable: true, }, }); await window.dispatchEvent(event); assert.htmlEqual( target.innerHTML, `
scroll\ny\nis\n234.\n234\n*\n234\n=\n54756
` ); }, after_test() { Object.defineProperties(window, { pageYOffset: { value: 0, configurable: true, }, }); }, };