mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
benchmark,doc,lib: capitalize more comments
PR-URL: https://github.com/nodejs/node/pull/26849 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
parent
fd992e6e36
commit
b08a867d60
232 changed files with 466 additions and 473 deletions
|
@ -30,9 +30,9 @@ server.once('request', common.mustCall((req, res) => {
|
|||
server.on('request', common.mustCall((req, res) => {
|
||||
res.end(Buffer.from('asdf'));
|
||||
}));
|
||||
// write should accept string
|
||||
// `res.write()` should accept `string`.
|
||||
res.write('string');
|
||||
// write should accept buffer
|
||||
// `res.write()` should accept `buffer`.
|
||||
res.write(Buffer.from('asdf'));
|
||||
|
||||
const expectedError = {
|
||||
|
@ -40,7 +40,7 @@ server.once('request', common.mustCall((req, res) => {
|
|||
name: 'TypeError',
|
||||
};
|
||||
|
||||
// Write should not accept an Array
|
||||
// `res.write()` should not accept an Array.
|
||||
assert.throws(
|
||||
() => {
|
||||
res.write(['array']);
|
||||
|
@ -48,7 +48,7 @@ server.once('request', common.mustCall((req, res) => {
|
|||
expectedError
|
||||
);
|
||||
|
||||
// End should not accept an Array
|
||||
// `res.end()` should not accept an Array.
|
||||
assert.throws(
|
||||
() => {
|
||||
res.end(['moo']);
|
||||
|
@ -56,12 +56,12 @@ server.once('request', common.mustCall((req, res) => {
|
|||
expectedError
|
||||
);
|
||||
|
||||
// end should accept string
|
||||
// `res.end()` should accept `string`.
|
||||
res.end('string');
|
||||
}));
|
||||
|
||||
server.listen(0, function() {
|
||||
// Just make a request, other tests handle responses
|
||||
// Just make a request, other tests handle responses.
|
||||
http.get({ port: this.address().port }, (res) => {
|
||||
res.resume();
|
||||
// Do it again to test .end(Buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue