We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420b3b8 commit b37fce9Copy full SHA for b37fce9
test/parallel/test-sync-fileread.js
@@ -1,9 +1,9 @@
1
'use strict';
2
-var common = require('../common');
3
-var assert = require('assert');
4
-var path = require('path');
5
-var fs = require('fs');
+const common = require('../common');
+const assert = require('assert');
+const path = require('path');
+const fs = require('fs');
6
7
-var fixture = path.join(common.fixturesDir, 'x.txt');
+const fixture = path.join(common.fixturesDir, 'x.txt');
8
9
-assert.equal('xyz\n', fs.readFileSync(fixture));
+assert.strictEqual(fs.readFileSync(fixture).toString(), 'xyz\n');
0 commit comments