Skip to content

Commit be2bb30

Browse files
authored
chore: make instances property of IntersectionObserverMock readonly (#17)
1 parent 495b5c5 commit be2bb30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/setupTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Object.defineProperty(HTMLElement.prototype, 'scrollTo', {
2121

2222
// This mock is necessary because JSDOM does not implement IntersectionObserver
2323
export class IntersectionObserverMock implements IntersectionObserver {
24-
static instances: IntersectionObserverMock[] = [];
24+
static readonly instances: IntersectionObserverMock[] = [];
2525
callback: IntersectionObserverCallback;
2626
elements: Element[] = [];
2727
root: Element | Document | null = null;

0 commit comments

Comments
 (0)