From 88d2e699d8287218cc6cd4cc80e13e1055e07fce Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 12 May 2017 03:09:13 +0300 Subject: test: remove unneeded string splitting PR-URL: https://github.com/nodejs/node/pull/12992 Reviewed-By: Luigi Pinca Reviewed-By: Luca Maraschi Reviewed-By: Colin Ihrig Reviewed-By: Daniel Bevenius Reviewed-By: James M Snell Reviewed-By: Gibson Fahnestock --- ...p-url.parse-only-support-http-https-protocol.js | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/parallel/test-http-url.parse-only-support-http-https-protocol.js') 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; } }); -- cgit v1.2.1