refactor(helpers): modernize reactive helpers and add tests
This commit is contained in:
@@ -56,6 +56,11 @@ function createMockContainer(height = 500, scrollTop = 0): any {
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
Object.defineProperty(container, 'clientHeight', {
|
||||
value: height,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
});
|
||||
Object.defineProperty(container, 'scrollTop', {
|
||||
value: scrollTop,
|
||||
writable: true,
|
||||
|
||||
Reference in New Issue
Block a user