mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: use eslint to fix var->const/let
Manually fix issues that eslint --fix couldn't do automatically. PR-URL: https://github.com/nodejs/node/pull/10685 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
parent
1ef401ce92
commit
7a0e462f9f
730 changed files with 3387 additions and 3368 deletions
|
@ -17,12 +17,12 @@ common.refreshTmpDir();
|
|||
|
||||
server.listen(common.PIPE, common.mustCall(function() {
|
||||
|
||||
var options = {
|
||||
const options = {
|
||||
socketPath: common.PIPE,
|
||||
path: '/'
|
||||
};
|
||||
|
||||
var req = http.get(options, common.mustCall(function(res) {
|
||||
const req = http.get(options, common.mustCall(function(res) {
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.headers['content-type'], 'text/plain');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue