Skip to content

Commit

Permalink
Fixed up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Dec 18, 2024
1 parent 8945254 commit 633f23a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions posthog/models/test/test_remote_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,13 @@ def test_renders_js_including_site_functions(self):
callback(true);
}
return {
processEvent: (globals) => processEvent(globals, posthog)
const response = {}
if (processEvent) {
response.processEvent = (globals) => processEvent(globals, posthog)
}
return response
}
return { init: init };
Expand Down Expand Up @@ -786,9 +790,13 @@ def test_renders_js_including_site_functions(self):
callback(true);
}
return {
processEvent: (globals) => processEvent(globals, posthog)
const response = {}
if (processEvent) {
response.processEvent = (globals) => processEvent(globals, posthog)
}
return response
}
return { init: init };
Expand Down

0 comments on commit 633f23a

Please sign in to comment.