From 98496b6d3e4eaca827450966f443880440bd5bc0 Mon Sep 17 00:00:00 2001 From: Jason Wohlgemuth Date: Thu, 1 Dec 2016 10:36:16 -0600 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott --- test/parallel/test-sync-fileread.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-sync-fileread.js b/test/parallel/test-sync-fileread.js index 36ac23fd87..6882513c50 100644 --- a/test/parallel/test-sync-fileread.js +++ b/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');