summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-url.parse-only-support-http-https-protocol.js
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-05-12 03:09:13 +0300
committerAnna Henningsen <anna@addaleax.net>2017-05-15 13:49:45 +0200
commit88d2e699d8287218cc6cd4cc80e13e1055e07fce (patch)
treea59f2b003b4c1796d573a3b56b647022440b8ba9 /test/parallel/test-http-url.parse-only-support-http-https-protocol.js
parent32f01c8c11568df8b0a996e271bc0690e0967bdb (diff)
downloadandroid-node-v8-88d2e699d8287218cc6cd4cc80e13e1055e07fce.tar.gz
android-node-v8-88d2e699d8287218cc6cd4cc80e13e1055e07fce.tar.bz2
android-node-v8-88d2e699d8287218cc6cd4cc80e13e1055e07fce.zip
test: remove unneeded string splitting
PR-URL: https://github.com/nodejs/node/pull/12992 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Luca Maraschi <luca.maraschi@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/parallel/test-http-url.parse-only-support-http-https-protocol.js')
-rw-r--r--test/parallel/test-http-url.parse-only-support-http-https-protocol.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/parallel/test-http-url.parse-only-support-http-https-protocol.js b/test/parallel/test-http-url.parse-only-support-http-https-protocol.js
index 9933c55726..903b4ba598 100644
--- a/test/parallel/test-http-url.parse-only-support-http-https-protocol.js
+++ b/test/parallel/test-http-url.parse-only-support-http-https-protocol.js
@@ -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:asdf@asdf.com'));
}, 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:isaacschlueter@jabber.org'));
}, 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;
}
});