test-tls-check-server-identity var->const, assert, string template#9986
test-tls-check-server-identity var->const, assert, string template#9986koxauvin wants to merge 3 commits intonodejs:masterfrom koxauvin:test-tls-check-server-identity
Conversation
|
Please see the commit message guidelines here. |
There was a problem hiding this comment.
Please avoid multi-line template literals, especially given that the additional whitespace will be included in the string.
`Test# ${i} failed: ${util.inspect(test)} \n` +
`${test.error} != ${(err && err.reason)}`);There was a problem hiding this comment.
please move the assert and util requires after the hasCrypto check
There was a problem hiding this comment.
I tried removing the block
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
but module common is not used "error 'common' is assigned a value but never used no-unused-vars".
Then when I remove the require for common I get "error Mandatory module "common" must be loaded required-modules"
The util requires in used in the string template, can't remove that.
There was a problem hiding this comment.
@koxauvin Please don't remove the hasCrypto check. It is needed for this test. But please move the assignments to assert and util to be after that block.
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output.
Converted multi-line string template literals to string concatentation.
Converted multi-line string template literals to string concatentation.
|
Lone CI failure is a Jenkins/build issue and unrelated to the changes here. |
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: nodejs#9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in b00f8ad. |
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: #9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: #9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: #9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: #9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: #9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: #9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output. PR-URL: #9986 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j8 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
test
Description of change
Changed var to const, assert.equal to assert.strictEqual, and used a template string for error output.