@@ -30,8 +30,8 @@ assert.throws(function() {
30
30
http . request ( url . parse ( 'file:///whatever' ) ) ;
31
31
} , function ( err ) {
32
32
if ( err instanceof Error ) {
33
- assert . strictEqual ( err . message , 'Protocol "file:" not supported.' +
34
- ' Expected "http:"') ;
33
+ assert . strictEqual (
34
+ err . message , 'Protocol "file:" not supported. Expected "http:"') ;
35
35
return true ;
36
36
}
37
37
} ) ;
@@ -40,8 +40,8 @@ assert.throws(function() {
40
40
http . request ( url . parse ( 'mailto:[email protected] ' ) ) ;
41
41
} , function ( err ) {
42
42
if ( err instanceof Error ) {
43
- assert . strictEqual ( err . message , 'Protocol "mailto:" not supported.' +
44
- ' Expected "http:"') ;
43
+ assert . strictEqual (
44
+ err . message , 'Protocol "mailto:" not supported. Expected "http:"') ;
45
45
return true ;
46
46
}
47
47
} ) ;
@@ -50,8 +50,8 @@ assert.throws(function() {
50
50
http . request ( url . parse ( 'ftp://www.example.com' ) ) ;
51
51
} , function ( err ) {
52
52
if ( err instanceof Error ) {
53
- assert . strictEqual ( err . message , 'Protocol "ftp:" not supported.' +
54
- ' Expected "http:"') ;
53
+ assert . strictEqual (
54
+ err . message , 'Protocol "ftp:" not supported. Expected "http:"') ;
55
55
return true ;
56
56
}
57
57
} ) ;
@@ -60,8 +60,8 @@ assert.throws(function() {
60
60
http . request ( url . parse ( 'javascript:alert(\'hello\');' ) ) ;
61
61
} , function ( err ) {
62
62
if ( err instanceof Error ) {
63
- assert . strictEqual ( err . message , 'Protocol "javascript:" not supported.' +
64
- ' Expected "http:"') ;
63
+ assert . strictEqual (
64
+ err . message , 'Protocol "javascript:" not supported. Expected "http:"') ;
65
65
return true ;
66
66
}
67
67
} ) ;
@@ -70,8 +70,8 @@ assert.throws(function() {
70
70
http . request ( url . parse ( 'xmpp:[email protected] ' ) ) ;
71
71
} , function ( err ) {
72
72
if ( err instanceof Error ) {
73
- assert . strictEqual ( err . message , 'Protocol "xmpp:" not supported.' +
74
- ' Expected "http:"') ;
73
+ assert . strictEqual (
74
+ err . message , 'Protocol "xmpp:" not supported. Expected "http:"') ;
75
75
return true ;
76
76
}
77
77
} ) ;
@@ -80,8 +80,8 @@ assert.throws(function() {
80
80
http . request ( url . parse ( 'f://some.host/path' ) ) ;
81
81
} , function ( err ) {
82
82
if ( err instanceof Error ) {
83
- assert . strictEqual ( err . message , 'Protocol "f:" not supported.' +
84
- ' Expected "http:"') ;
83
+ assert . strictEqual (
84
+ err . message , 'Protocol "f:" not supported. Expected "http:"') ;
85
85
return true ;
86
86
}
87
87
} ) ;
0 commit comments