@@ -9,8 +9,8 @@ assert.throws(function() {
9
9
http . request ( url . parse ( 'file:///whatever' ) ) ;
10
10
} , function ( err ) {
11
11
if ( err instanceof Error ) {
12
- assert . strictEqual ( err . message , 'Protocol "file:" not supported.' +
13
- ' Expected "http:"') ;
12
+ assert . strictEqual (
13
+ err . message , 'Protocol "file:" not supported. Expected "http:"') ;
14
14
return true ;
15
15
}
16
16
} ) ;
@@ -19,8 +19,8 @@ assert.throws(function() {
19
19
http . request ( url . parse ( 'mailto:[email protected] ' ) ) ;
20
20
} , function ( err ) {
21
21
if ( err instanceof Error ) {
22
- assert . strictEqual ( err . message , 'Protocol "mailto:" not supported.' +
23
- ' Expected "http:"') ;
22
+ assert . strictEqual (
23
+ err . message , 'Protocol "mailto:" not supported. Expected "http:"') ;
24
24
return true ;
25
25
}
26
26
} ) ;
@@ -29,8 +29,8 @@ assert.throws(function() {
29
29
http . request ( url . parse ( 'ftp://www.example.com' ) ) ;
30
30
} , function ( err ) {
31
31
if ( err instanceof Error ) {
32
- assert . strictEqual ( err . message , 'Protocol "ftp:" not supported.' +
33
- ' Expected "http:"') ;
32
+ assert . strictEqual (
33
+ err . message , 'Protocol "ftp:" not supported. Expected "http:"') ;
34
34
return true ;
35
35
}
36
36
} ) ;
@@ -39,8 +39,8 @@ assert.throws(function() {
39
39
http . request ( url . parse ( 'javascript:alert(\'hello\');' ) ) ;
40
40
} , function ( err ) {
41
41
if ( err instanceof Error ) {
42
- assert . strictEqual ( err . message , 'Protocol "javascript:" not supported.' +
43
- ' Expected "http:"') ;
42
+ assert . strictEqual (
43
+ err . message , 'Protocol "javascript:" not supported. Expected "http:"') ;
44
44
return true ;
45
45
}
46
46
} ) ;
@@ -49,8 +49,8 @@ assert.throws(function() {
49
49
http . request ( url . parse ( 'xmpp:[email protected] ' ) ) ;
50
50
} , function ( err ) {
51
51
if ( err instanceof Error ) {
52
- assert . strictEqual ( err . message , 'Protocol "xmpp:" not supported.' +
53
- ' Expected "http:"') ;
52
+ assert . strictEqual (
53
+ err . message , 'Protocol "xmpp:" not supported. Expected "http:"') ;
54
54
return true ;
55
55
}
56
56
} ) ;
@@ -59,8 +59,8 @@ assert.throws(function() {
59
59
http . request ( url . parse ( 'f://some.host/path' ) ) ;
60
60
} , function ( err ) {
61
61
if ( err instanceof Error ) {
62
- assert . strictEqual ( err . message , 'Protocol "f:" not supported.' +
63
- ' Expected "http:"') ;
62
+ assert . strictEqual (
63
+ err . message , 'Protocol "f:" not supported. Expected "http:"') ;
64
64
return true ;
65
65
}
66
66
} ) ;
0 commit comments