Skip to content

Commit

Permalink
[test] Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Dec 9, 2023
1 parent 5a3036e commit c320738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/receiver.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ describe('Receiver', () => {
const receiver = new Receiver();
let count = 0;

receiver.on('message', function () {
receiver.on('message', () => {
if (++count === 2) {
throw new Error('Oops');
}
Expand Down
2 changes: 1 addition & 1 deletion test/websocket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3109,7 +3109,7 @@ describe('WebSocket', () => {
socket.write(Buffer.from('foo\r\n'));
});

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

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

0 comments on commit c320738

Please sign in to comment.