test: increase Http2ServerResponse test coverage
A few bundled changes, all for Http2ServerResponse, that are too small for separate PRs:
- Modified existing header tests for Http2ServerResponse to include
sendDate
(get and set) andheadersSent
- Expanded existing test for
end
to include a check forclosed
- New test for
destroy
Refs: https://github.com/nodejs/node/issues/14985
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test