mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: fix http2-binding strictEqual order
Switched the order of arguments for strictEqual checks inside of test/paralell/test-http2-binding.js PR-URL: https://github.com/nodejs/node/pull/24616 Refs: https://github.com/nodejsjp/node-1/issues/1 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
1 parent
82ef618e98
commit
cd1aa2b0b5
1 file changed
+4
-4
@@ -233,16 +233,16 @@ const defaultSettings = {
|
||||
|
||||
for (const name of Object.keys(constants)) {
|
||||
if (name.startsWith('HTTP_STATUS_')) {
|
||||
assert.strictEqual(expectedStatusCodes[name], constants[name],
|
||||
assert.strictEqual(constants[name], expectedStatusCodes[name],
|
||||
`Expected status code match for ${name}`);
|
||||
} else if (name.startsWith('HTTP2_HEADER_')) {
|
||||
assert.strictEqual(expectedHeaderNames[name], constants[name],
|
||||
assert.strictEqual(constants[name], expectedHeaderNames[name],
|
||||
`Expected header name match for ${name}`);
|
||||
} else if (name.startsWith('NGHTTP2_')) {
|
||||
assert.strictEqual(expectedNGConstants[name], constants[name],
|
||||
assert.strictEqual(constants[name], expectedNGConstants[name],
|
||||
`Expected ng constant match for ${name}`);
|
||||
} else if (name.startsWith('DEFAULT_SETTINGS_')) {
|
||||
assert.strictEqual(defaultSettings[name], constants[name],
|
||||
assert.strictEqual(constants[name], defaultSettings[name],
|
||||
`Expected default setting match for ${name}`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user