Skip to content

Commit 98496b6

Browse files
jhwohlgemuthMylesBorins
authored andcommitted
test: test: refactor test-sync-fileread
change equal to strictEqual and var to const PR-URL: #9941 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 324c82b commit 98496b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel/test-sync-fileread.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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 fixture = path.join(common.fixturesDir, 'x.txt');
7+
const fixture = path.join(common.fixturesDir, 'x.txt');
88

9-
assert.equal('xyz\n', fs.readFileSync(fixture));
9+
assert.strictEqual(fs.readFileSync(fixture).toString(), 'xyz\n');

0 commit comments

Comments
 (0)