diff options
author | cjihrig <cjihrig@gmail.com> | 2015-11-09 18:10:49 -0500 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-11-10 07:12:33 +0100 |
commit | 2c33819370e50cd1c1eae43d2fd88bdc5aca1905 (patch) | |
tree | c9e5134071d3d8c945e55c2d0f144a1948f45843 /test/parallel/test-http-url.parse-only-support-http-https-protocol.js | |
parent | 7b89a3de69b22face8a7077c0b695eba6d9fb353 (diff) | |
download | android-node-v8-2c33819370e50cd1c1eae43d2fd88bdc5aca1905.tar.gz android-node-v8-2c33819370e50cd1c1eae43d2fd88bdc5aca1905.tar.bz2 android-node-v8-2c33819370e50cd1c1eae43d2fd88bdc5aca1905.zip |
test: fix tests that check error messages
20285ad17755187ece16b8a5effeaa87f5407da2 changed the format
of error messages throughout lib. However, the tests were not
updated to reflect these changes. This commit makes those
changes.
PR-URL: https://github.com/nodejs/node/pull/3727
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: James M Snell <jasnell@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.js | 12 |
1 files changed, 6 insertions, 6 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 fd52a0b62d..8402517db2 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 @@ -10,7 +10,7 @@ assert.throws(function() { }, function(err) { if (err instanceof Error) { assert.strictEqual(err.message, 'Protocol "file:" not supported.' + - ' Expected "http:".'); + ' Expected "http:"'); return true; } }); @@ -20,7 +20,7 @@ assert.throws(function() { }, function(err) { if (err instanceof Error) { assert.strictEqual(err.message, 'Protocol "mailto:" not supported.' + - ' Expected "http:".'); + ' Expected "http:"'); return true; } }); @@ -30,7 +30,7 @@ assert.throws(function() { }, function(err) { if (err instanceof Error) { assert.strictEqual(err.message, 'Protocol "ftp:" not supported.' + - ' Expected "http:".'); + ' Expected "http:"'); return true; } }); @@ -40,7 +40,7 @@ assert.throws(function() { }, function(err) { if (err instanceof Error) { assert.strictEqual(err.message, 'Protocol "javascript:" not supported.' + - ' Expected "http:".'); + ' Expected "http:"'); return true; } }); @@ -50,7 +50,7 @@ assert.throws(function() { }, function(err) { if (err instanceof Error) { assert.strictEqual(err.message, 'Protocol "xmpp:" not supported.' + - ' Expected "http:".'); + ' Expected "http:"'); return true; } }); @@ -60,7 +60,7 @@ assert.throws(function() { }, function(err) { if (err instanceof Error) { assert.strictEqual(err.message, 'Protocol "f:" not supported.' + - ' Expected "http:".'); + ' Expected "http:"'); return true; } }); |