We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295eb5a commit 2a8d293Copy full SHA for 2a8d293
test/parallel/test-net-localerror.js
@@ -1,19 +1,19 @@
1
'use strict';
2
-var common = require('../common');
3
-var assert = require('assert');
4
-var net = require('net');
+const common = require('../common');
+const assert = require('assert');
+const net = require('net');
5
6
connect({
7
host: 'localhost',
8
port: common.PORT,
9
localPort: 'foobar',
10
-}, 'localPort should be a number: foobar');
+}, /^TypeError: "localPort" option should be a number: foobar$/);
11
12
13
14
15
localAddress: 'foobar',
16
-}, 'localAddress should be a valid IP: foobar');
+}, /^TypeError: "localAddress" option must be a valid IP: foobar$/);
17
18
function connect(opts, msg) {
19
assert.throws(function() {
0 commit comments