diff options
author | martyns0n <zogacc@gmail.com> | 2019-05-26 17:26:05 +0300 |
---|---|---|
committer | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2019-05-28 00:33:13 +0300 |
commit | d6cc6ab0376d5dd6a644313154ad84d94be58b2d (patch) | |
tree | 3316aa7d4879d09c623dcd854836eb8365a6c61b /test/parallel/test-http2-origin.js | |
parent | 2d8367a5c3dd4eff53c3b2c25967be90fe248885 (diff) | |
download | android-node-v8-d6cc6ab0376d5dd6a644313154ad84d94be58b2d.tar.gz android-node-v8-d6cc6ab0376d5dd6a644313154ad84d94be58b2d.tar.bz2 android-node-v8-d6cc6ab0376d5dd6a644313154ad84d94be58b2d.zip |
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>
Diffstat (limited to 'test/parallel/test-http2-origin.js')
-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(() => { |