Skip to content

Commit

Permalink
test: use const or let and assert.strictEqual
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
crokita authored and jasnell committed Dec 5, 2016
1 parent ee97f84 commit 8a3c7d7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/parallel/test-fs-read-file-sync.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var path = require('path');
var fs = require('fs');
const common = require('../common');
const assert = require('assert');
const path = require('path');
const fs = require('fs');

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

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

0 comments on commit 8a3c7d7

Please sign in to comment.