test: refactor test-http-after-connect.js
Affected core subsystem(s)
test
Description of change
- Replace assert.equal() to assert.strictEqual()
- Replace
var
withconst
where applicable - Removed
firstBodyChunk
which is never used - remove the
process.on('exit', ...)
and replace its functionality by usingcommon.mustCall()
where applicable