Skip to content

Commit 3f9d75c

Browse files
crokitaMylesBorins
authored andcommitted
test: use const or let and assert.strictEqual
PR-URL: #10001 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 98afba5 commit 3f9d75c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
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)