Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
test: Call done callback without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed May 24, 2022
1 parent 8c693cb commit 093c1b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/WebSocketClient.test.ts
Expand Up @@ -215,7 +215,9 @@ describe('WebSocketClient', () => {
ws.disconnect();
}
});
ws.on(WebSocketEvent.ON_CLOSE, done);
ws.on(WebSocketEvent.ON_CLOSE, () => {
done();
});
ws.on(WebSocketEvent.ON_MESSAGE_ERROR, (wsError: WebSocketErrorMessage) => done.fail(wsError.message));
// Send subscription once the WebSocket is ready
ws.on(WebSocketEvent.ON_OPEN, () => ws.subscribe(channels));
Expand Down

0 comments on commit 093c1b9

Please sign in to comment.