mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
Fixed TS error in test
This commit is contained in:
parent
fa70520f38
commit
caa3a09827
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ describe('helpers', () => {
|
|||
[ Mock.of<MercureInfo>({ loading: false, error: false, mercureHubUrl: undefined }) ],
|
||||
[ Mock.of<MercureInfo>({ 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();
|
||||
|
|
Loading…
Reference in a new issue