mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix(deps): update dependency ws to v8
This commit is contained in:
committed by
Ruben Verborgh
parent
2ae95bd167
commit
8c266f09c5
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user