From 981c0b213f5f5203cbef43c9155014b70d58379a Mon Sep 17 00:00:00 2001 From: Jason Wohlgemuth Date: Thu, 1 Dec 2016 10:36:16 -0600 Subject: [PATCH] test: change equal to strictEqual and var to const --- 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 36ac23fd8789a0..6882513c50b950 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');