@@ -38,55 +38,55 @@ server.listen(tcpPort, 'localhost', function() {
38
38
39
39
fail ( {
40
40
port : true
41
- } , TypeError , 'port should be a number or string: true' ) ;
41
+ } , TypeError , '" port" option should be a number or string: true' ) ;
42
42
43
43
fail ( {
44
44
port : false
45
- } , TypeError , 'port should be a number or string: false' ) ;
45
+ } , TypeError , '" port" option should be a number or string: false' ) ;
46
46
47
47
fail ( {
48
48
port : [ ]
49
- } , TypeError , 'port should be a number or string: ' ) ;
49
+ } , TypeError , '" port" option should be a number or string: ' ) ;
50
50
51
51
fail ( {
52
52
port : { }
53
- } , TypeError , 'port should be a number or string: [object Object]' ) ;
53
+ } , TypeError , '" port" option should be a number or string: [object Object]' ) ;
54
54
55
55
fail ( {
56
56
port : null
57
- } , TypeError , 'port should be a number or string: null' ) ;
57
+ } , TypeError , '" port" option should be a number or string: null' ) ;
58
58
59
59
fail ( {
60
60
port : ''
61
- } , RangeError , 'port should be >= 0 and < 65536: ' ) ;
61
+ } , RangeError , '" port" option should be >= 0 and < 65536: ' ) ;
62
62
63
63
fail ( {
64
64
port : ' '
65
- } , RangeError , 'port should be >= 0 and < 65536: ' ) ;
65
+ } , RangeError , '" port" option should be >= 0 and < 65536: ' ) ;
66
66
67
67
fail ( {
68
68
port : '0x'
69
- } , RangeError , 'port should be >= 0 and < 65536: 0x' ) ;
69
+ } , RangeError , '" port" option should be >= 0 and < 65536: 0x' ) ;
70
70
71
71
fail ( {
72
72
port : '-0x1'
73
- } , RangeError , 'port should be >= 0 and < 65536: -0x1' ) ;
73
+ } , RangeError , '" port" option should be >= 0 and < 65536: -0x1' ) ;
74
74
75
75
fail ( {
76
76
port : NaN
77
- } , RangeError , 'port should be >= 0 and < 65536: NaN' ) ;
77
+ } , RangeError , '" port" option should be >= 0 and < 65536: NaN' ) ;
78
78
79
79
fail ( {
80
80
port : Infinity
81
- } , RangeError , 'port should be >= 0 and < 65536: Infinity' ) ;
81
+ } , RangeError , '" port" option should be >= 0 and < 65536: Infinity' ) ;
82
82
83
83
fail ( {
84
84
port : - 1
85
- } , RangeError , 'port should be >= 0 and < 65536: -1' ) ;
85
+ } , RangeError , '" port" option should be >= 0 and < 65536: -1' ) ;
86
86
87
87
fail ( {
88
88
port : 65536
89
- } , RangeError , 'port should be >= 0 and < 65536: 65536' ) ;
89
+ } , RangeError , '" port" option should be >= 0 and < 65536: 65536' ) ;
90
90
} ) ;
91
91
92
92
// Try connecting to random ports, but do so once the server is closed
0 commit comments