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 25, 2022
1 parent d5bfc01 commit af9406c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/WebSocketClient.test.ts
Expand Up @@ -62,7 +62,9 @@ describe('WebSocketClient', () => {
it('attaches an error listener', done => {
const invalidUrl = 'ws://localhost:50001';
const ws = createWebSocketClient(invalidUrl);
ws.on(WebSocketEvent.ON_ERROR, done);
ws.on(WebSocketEvent.ON_ERROR, () => {
done();
});
ws.connect();
});

Expand Down

0 comments on commit af9406c

Please sign in to comment.