mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-12-12 15:17:49 -06:00
Fixed TS error in test
This commit is contained in:
parent
fa70520f38
commit
caa3a09827
@ -20,7 +20,7 @@ describe('helpers', () => {
|
|||||||
[ Mock.of<MercureInfo>({ loading: false, error: false, mercureHubUrl: undefined }) ],
|
[ Mock.of<MercureInfo>({ loading: false, error: false, mercureHubUrl: undefined }) ],
|
||||||
[ Mock.of<MercureInfo>({ loading: true, error: true, mercureHubUrl: undefined }) ],
|
[ Mock.of<MercureInfo>({ loading: true, error: true, mercureHubUrl: undefined }) ],
|
||||||
])('does not bind an EventSource when loading, error or no hub URL', (mercureInfo) => {
|
])('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(EventSourcePolyfill).not.toHaveBeenCalled();
|
||||||
expect(onMessage).not.toHaveBeenCalled();
|
expect(onMessage).not.toHaveBeenCalled();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user