The Wayback Machine - https://web.archive.org/web/20211203045659/https://github.com/nodejs/node/commit/98496b6d3e
Skip to content
Permalink
Browse files
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>
  • Loading branch information
jhwohlgemuth authored and MylesBorins committed Feb 1, 2017
1 parent 324c82b commit 98496b6d3e4eaca827450966f443880440bd5bc0
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/parallel/test-sync-fileread.js
@@ -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');

0 comments on commit 98496b6

Please sign in to comment.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.