-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove unneeded string splitting
PR-URL: #12992 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Luca Maraschi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
- Loading branch information
1 parent
32f01c8
commit 88d2e69
Showing
22 changed files
with
57 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,8 @@ assert.throws(function() { | |
http.request(url.parse('file:///whatever')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "file:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "file:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -40,8 +40,8 @@ assert.throws(function() { | |
http.request(url.parse('mailto:[email protected]')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "mailto:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "mailto:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -50,8 +50,8 @@ assert.throws(function() { | |
http.request(url.parse('ftp://www.example.com')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "ftp:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "ftp:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -60,8 +60,8 @@ assert.throws(function() { | |
http.request(url.parse('javascript:alert(\'hello\');')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "javascript:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "javascript:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -70,8 +70,8 @@ assert.throws(function() { | |
http.request(url.parse('xmpp:[email protected]')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "xmpp:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "xmpp:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); | ||
|
@@ -80,8 +80,8 @@ assert.throws(function() { | |
http.request(url.parse('f://some.host/path')); | ||
}, function(err) { | ||
if (err instanceof Error) { | ||
assert.strictEqual(err.message, 'Protocol "f:" not supported.' + | ||
' Expected "http:"'); | ||
assert.strictEqual( | ||
err.message, 'Protocol "f:" not supported. Expected "http:"'); | ||
return true; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters