diff options
author | martyns0n <zogacc@gmail.com> | 2019-05-26 17:26:05 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-05-28 07:33:37 +0200 |
commit | 652cadba1c4594a347b425f9aee5e92644d43ad9 (patch) | |
tree | 3e5a6509e71899cc4418308ea3315bb299f0a0de | |
parent | 728bc2f59a555a452b4a42dc51f8a079546b397f (diff) | |
download | node-new-652cadba1c4594a347b425f9aee5e92644d43ad9.tar.gz |
test: fix arguments order of comparsion functions
Place actual values as the first agruments and expected as the second.
PR-URL: https://github.com/nodejs/node/pull/27907
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
-rw-r--r-- | test/parallel/test-http2-origin.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-http2-origin.js b/test/parallel/test-http2-origin.js index d0d8c81f80..7aa0a16e35 100644 --- a/test/parallel/test-http2-origin.js +++ b/test/parallel/test-http2-origin.js @@ -96,7 +96,7 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary'); client.on('origin', mustCall((origins) => { const check = checks.shift(); originSet.push(...check); - deepStrictEqual(originSet, client.originSet); + deepStrictEqual(client.originSet, originSet); deepStrictEqual(origins, check); countdown.dec(); }, 2)); @@ -121,7 +121,7 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary'); client.on('origin', mustCall((origins) => { originSet.push(...check); - deepStrictEqual(originSet, client.originSet); + deepStrictEqual(client.originSet, originSet); deepStrictEqual(origins, check); client.close(); server.close(); @@ -148,11 +148,11 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary'); const client = connect(origin, { ca }); client.on('origin', mustCall((origins) => { - deepStrictEqual([origin, 'https://foo.org'], client.originSet); + deepStrictEqual(client.originSet, [origin, 'https://foo.org']); const req = client.request({ ':authority': 'foo.org' }); req.on('response', mustCall((headers) => { - strictEqual(421, headers[':status']); - deepStrictEqual([origin], client.originSet); + strictEqual(headers[':status'], 421); + deepStrictEqual(client.originSet, [origin]); })); req.resume(); req.on('close', mustCall(() => { |