We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262e45a commit edff6bbCopy full SHA for edff6bb
test/websocket.test.js
@@ -1487,7 +1487,7 @@ describe('WebSocket', () => {
1487
it('closes the connection if called while connecting (3/3)', (done) => {
1488
const server = http.createServer();
1489
1490
- server.listen(0, function () {
+ server.listen(0, () => {
1491
const ws = new WebSocket(`ws://localhost:${server.address().port}`);
1492
1493
ws.on('open', () => done(new Error("Unexpected 'open' event")));
0 commit comments