mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: test: refactor test-sync-fileread
change equal to strictEqual and var to const PR-URL: https://github.com/nodejs/node/pull/9941 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
76c72209be
commit
5c85ae69f9
1 file changed
+6
-6
@@ -1,9 +1,9 @@
|
||||
'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 fixture = path.join(common.fixturesDir, 'x.txt');
|
||||
const fixture = path.join(common.fixturesDir, 'x.txt');
|
||||
|
||||
assert.equal('xyz\n', fs.readFileSync(fixture));
|
||||
assert.strictEqual(fs.readFileSync(fixture).toString(), 'xyz\n');
|
||||
Reference in new issue
Block a user