Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: remove unnecessary whitespace
  • Loading branch information
markarranz committed Nov 7, 2018
commit 9775048c62cd9cc9d2849f900f13eb63ef5a3415
6 changes: 3 additions & 3 deletions test/parallel/test-dgram-send-bad-arguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const sock = dgram.createSocket('udp4');
// First argument should be a buffer.
assert.throws(() => { sock.send(); }, TypeError);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we don't need both this and common. expectsError(), I'd keep only common. expectsError(). Same below.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update accordingly. Thank you.

common.expectsError(
() => { sock.send(); },
() => { sock.send(); },
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
Expand All @@ -48,7 +48,7 @@ assert.throws(() => { sock.send(buf, 1, 1, 65536, host); }, RangeError);
// send(buf, port, host)
assert.throws(() => { sock.send(23, 12345, host); }, TypeError);
common.expectsError(
() => { sock.send(23, 12345, host); },
() => { sock.send(23, 12345, host); },
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
Expand All @@ -60,7 +60,7 @@ common.expectsError(
// send([buf1, ..], port, host)
assert.throws(() => { sock.send([buf, 23], 12345, host); }, TypeError);
common.expectsError(
() => { sock.send([buf, 23], 12345, host); },
() => { sock.send([buf, 23], 12345, host); },
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
Expand Down