Skip to content

Commit da3ea00

Browse files
committed
Fix goals test, remove state detector tests.
1 parent 270bca4 commit da3ea00

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/sdk/browser/__tests__/BrowserStateDetector.test.ts

Whitespace-only changes.

packages/sdk/browser/__tests__/goals/GoalTracker.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ it('should add click event listener for click goals', () => {
7878

7979
new GoalTracker(goals, mockOnEvent);
8080

81-
expect(document.addEventListener).toHaveBeenCalledWith('click', expect.any(Function));
81+
expect(document.addEventListener).toHaveBeenCalledWith('click', expect.any(Function), undefined);
8282
});
8383

8484
it('should not add click event listener if no click goals', () => {
@@ -175,7 +175,11 @@ it('should remove click event listener on close', () => {
175175
const tracker = new GoalTracker(goals, mockOnEvent);
176176
tracker.close();
177177

178-
expect(document.removeEventListener).toHaveBeenCalledWith('click', expect.any(Function));
178+
expect(document.removeEventListener).toHaveBeenCalledWith(
179+
'click',
180+
expect.any(Function),
181+
undefined,
182+
);
179183
});
180184

181185
it('should trigger the click goal for parent elements which match the selector', () => {

0 commit comments

Comments
 (0)