Skip to content

Commit fdc55ef

Browse files
crokitaFishrock123
authored andcommitted
test: use const or let and assert.strictEqual
PR-URL: #10001 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ae1ef53 commit fdc55ef

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
4-
var path = require('path');
5-
var fs = require('fs');
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const path = require('path');
5+
const fs = require('fs');
66

7-
var fn = path.join(common.fixturesDir, 'elipses.txt');
7+
const fn = path.join(common.fixturesDir, 'elipses.txt');
88

9-
var s = fs.readFileSync(fn, 'utf8');
10-
for (var i = 0; i < s.length; i++) {
11-
assert.equal('\u2026', s[i]);
9+
const s = fs.readFileSync(fn, 'utf8');
10+
for (let i = 0; i < s.length; i++) {
11+
assert.strictEqual('\u2026', s[i]);
1212
}
13-
assert.equal(10000, s.length);
13+
assert.strictEqual(10000, s.length);

0 commit comments

Comments
 (0)