fix(deps): update dependency ws to v8

This commit is contained in:
Renovate Bot
2021-07-29 22:08:30 +00:00
committed by Ruben Verborgh
parent 2ae95bd167
commit 8c266f09c5
4 changed files with 40 additions and 12 deletions

View File

@@ -47,8 +47,8 @@ describe('SimpleWebSocketHandler', (): void => {
it('has a functioning WebSockets interface.', async(): Promise<void> => {
const client = new WebSocket('ws://localhost:5556');
const text = await new Promise((resolve): any => client.on('message', resolve));
expect(text).toBe('SimpleWebSocketHandler');
const buffer = await new Promise<Buffer>((resolve): any => client.on('message', resolve));
expect(buffer.toString()).toBe('SimpleWebSocketHandler');
expect(webSocketHandler.host).toBe('localhost:5556');
});
});