Skip to content

Commit

Permalink
[test] Remove unneeded options object
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Apr 15, 2020
1 parent 3bf4ac8 commit c31150f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/websocket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ describe('WebSocket', () => {

const ws = new WebSocket(`ws://localhost:${wss.address().port}`);

ws.on('open', () => ws.send(partial, { binary: true }));
ws.on('open', () => ws.send(partial));
ws.on('message', (message) => {
assert.ok(message.equals(buf));
wss.close(done);
Expand All @@ -1244,7 +1244,7 @@ describe('WebSocket', () => {
const buf = Buffer.from('foobar');
const ws = new WebSocket(`ws://localhost:${wss.address().port}`);

ws.on('open', () => ws.send(buf, { binary: true }));
ws.on('open', () => ws.send(buf));
ws.on('message', (message) => {
assert.ok(message.equals(buf));
wss.close(done);
Expand Down

0 comments on commit c31150f

Please sign in to comment.