export default { skip_if_ssr: true, before_test() { Object.defineProperties(window, { pageYOffset: { value: 0, configurable: true } }); }, async test({ assert, 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

' ); } };