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
test: remove duplicated tests using assert
  • Loading branch information
markarranz committed Nov 8, 2018
commit 32f59b239b676b3056e3c6d75651fa7048803126
3 changes: 0 additions & 3 deletions test/parallel/test-dgram-send-bad-arguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const host = '127.0.0.1';
const sock = dgram.createSocket('udp4');

// First argument should be a buffer.
assert.throws(() => { sock.send(); }, TypeError);
common.expectsError(
() => { sock.send(); },
{
Expand All @@ -46,7 +45,6 @@ assert.throws(() => { sock.send(buf, 1, 1, 0, host); }, RangeError);
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); },
{
Expand All @@ -58,7 +56,6 @@ common.expectsError(
);

// send([buf1, ..], port, host)
assert.throws(() => { sock.send([buf, 23], 12345, host); }, TypeError);
common.expectsError(
() => { sock.send([buf, 23], 12345, host); },
{
Expand Down