test: use const for all require() calls

PR-URL: https://github.com/nodejs/node/pull/10550
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
cjihrig authored and Italo A. Casas committed 2017-01-30 12:08:31 -05:00
1 parent 5250b3358e
commit dd9aefde69
603 files changed
+1567 -1546

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
'use strict';
require('../common');
var assert = require('assert');
const assert = require('assert');
switch (process.argv[2]) {
case 'child1':
@@ -70,7 +70,7 @@ function parent() {
}
function test(arg, exit) {
var spawn = require('child_process').spawn;
const spawn = require('child_process').spawn;
var node = process.execPath;
var f = __filename;
var option = { stdio: [ 0, 1, 'ignore' ] };