summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-cookies.js
diff options
context:
space:
mode:
authorBryan Azofeifa <bazofeifa89@gmail.com>2018-04-19 17:29:27 -0600
committerRich Trott <rtrott@gmail.com>2018-04-20 20:14:58 -0700
commit2a88f02f2ff861b794ea9b83bbdfe71950d584ed (patch)
treed3e9309bf6101b86ac3bf60aea8a155f205716c6 /test/parallel/test-http2-cookies.js
parentd96075c4b6fa35cb1d1f5b6ecf66cf3de82d5d12 (diff)
downloadandroid-node-v8-2a88f02f2ff861b794ea9b83bbdfe71950d584ed.tar.gz
android-node-v8-2a88f02f2ff861b794ea9b83bbdfe71950d584ed.tar.bz2
android-node-v8-2a88f02f2ff861b794ea9b83bbdfe71950d584ed.zip
test: remove message from strictEqual assertions
When an AssertionError happens, the value of headers['set-cookie'] is not reported. That information is useful for debugging. Hence removed the value passed as the message in deepStrictEqual assertions of test/parallel/test-http2-cookies.js PR-URL: https://github.com/nodejs/node/pull/20174 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-cookies.js')
-rw-r--r--test/parallel/test-http2-cookies.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-http2-cookies.js b/test/parallel/test-http2-cookies.js
index 8b371d8c42..275fbf05e7 100644
--- a/test/parallel/test-http2-cookies.js
+++ b/test/parallel/test-http2-cookies.js
@@ -48,8 +48,7 @@ server.on('listening', common.mustCall(() => {
req.on('response', common.mustCall((headers) => {
assert(Array.isArray(headers['set-cookie']));
- assert.deepStrictEqual(headers['set-cookie'], setCookie,
- 'set-cookie header does not match');
+ assert.deepStrictEqual(headers['set-cookie'], setCookie);
}));
req.on('end', common.mustCall(() => {