diff --git a/test/mercure/helpers/index.test.tsx b/test/mercure/helpers/index.test.tsx index adc3eafd..cd93117e 100644 --- a/test/mercure/helpers/index.test.tsx +++ b/test/mercure/helpers/index.test.tsx @@ -20,7 +20,7 @@ describe('helpers', () => { [ Mock.of({ loading: false, error: false, mercureHubUrl: undefined }) ], [ Mock.of({ loading: true, error: true, mercureHubUrl: undefined }) ], ])('does not bind an EventSource when loading, error or no hub URL', (mercureInfo) => { - bindToMercureTopic(mercureInfo, [ '' ], identity, identity); + bindToMercureTopic(mercureInfo, [ '' ], identity, () => {}); expect(EventSourcePolyfill).not.toHaveBeenCalled(); expect(onMessage).not.toHaveBeenCalled();