Browse Source

test: refactor dgram-send-multi-buffer-copy

assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9909
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
Konstantin Likhter 8 years ago
committed by Rich Trott
parent
commit
f13047dc57
  1. 2
      test/parallel/test-dgram-send-multi-buffer-copy.js

2
test/parallel/test-dgram-send-multi-buffer-copy.js

@ -7,7 +7,7 @@ const dgram = require('dgram');
const client = dgram.createSocket('udp4'); const client = dgram.createSocket('udp4');
const onMessage = common.mustCall(function(err, bytes) { const onMessage = common.mustCall(function(err, bytes) {
assert.equal(bytes, buf1.length + buf2.length); assert.strictEqual(bytes, buf1.length + buf2.length);
}); });
const buf1 = Buffer.alloc(256, 'x'); const buf1 = Buffer.alloc(256, 'x');

Loading…
Cancel
Save