Skip to content

Commit edff6bb

Browse files
committed
[test] Fix nit
1 parent 262e45a commit edff6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/websocket.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ describe('WebSocket', () => {
14871487
it('closes the connection if called while connecting (3/3)', (done) => {
14881488
const server = http.createServer();
14891489

1490-
server.listen(0, function () {
1490+
server.listen(0, () => {
14911491
const ws = new WebSocket(`ws://localhost:${server.address().port}`);
14921492

14931493
ws.on('open', () => done(new Error("Unexpected 'open' event")));

0 commit comments

Comments
 (0)