0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 08:56:14 +01:00
svelte/test/runtime/samples/window-bind-scroll-update/_config.js
2018-02-15 22:10:07 +07:00

12 lines
271 B
JavaScript

export default {
skip: true, // JSDOM
test ( assert, component, target, window ) {
assert.equal( window.pageYOffset || window.scrollY, 0 );
component.set({ scrollY: 100 });
assert.equal( window.pageYOffset || window.scrollY, 100 );
component.destroy();
}
};