Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Dec 16, 2024
1 parent ffac568 commit bad9290
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Cypress.on('window:before:load', (win) => {
cy.spy(win.console, 'warn')
cy.spy(win.console, 'log')
cy.spy(win.console, 'debug')

// NOTE: Temporary change whilst testing remote config
;(win as any)._POSTHOG_CONFIG = {}
})

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/posthog-core.loaded.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('loaded() with flags', () => {

jest.runOnlyPendingTimers() // Remote config load

expect(instance.featureFlags._callDecideEndpoint).toHaveBeenCalledTimes(1)
expect(instance.featureFlags._callDecideEndpoint).toHaveBeenCalledTimes(2)

expect(instance._send_request.mock.calls[1][0]).toMatchObject({
url: 'https://us.i.posthog.com/decide/?v=3',
Expand Down

0 comments on commit bad9290

Please sign in to comment.