From 1db2b89fe63f2c688fddb005c570bbe802d64411 Mon Sep 17 00:00:00 2001 From: Matt Webb Date: Thu, 1 Dec 2016 10:36:05 -0600 Subject: [PATCH 1/2] test: Update vars to const/let & equal to strictEqual --- test/parallel/test-fs-read-stream-resume.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-fs-read-stream-resume.js b/test/parallel/test-fs-read-stream-resume.js index abac0686c11944..3ff89644e5c018 100644 --- a/test/parallel/test-fs-read-stream-resume.js +++ b/test/parallel/test-fs-read-stream-resume.js @@ -1,13 +1,13 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); +const common = require('../common'); +const assert = require('assert'); -var fs = require('fs'); -var path = require('path'); +const fs = require('fs'); +const path = require('path'); -var file = path.join(common.fixturesDir, 'x.txt'); -var data = ''; -var first = true; +const file = path.join(common.fixturesDir, 'x.txt'); +let data = ''; +let first = true; var stream = fs.createReadStream(file); stream.setEncoding('utf8'); @@ -27,5 +27,5 @@ process.nextTick(function() { }); process.on('exit', function() { - assert.equal(data, 'xyz\n'); + assert.strictEqual(data, 'xyz\n'); }); From 30b06bdd7cf574401e865c8ff3ec74930043eaa6 Mon Sep 17 00:00:00 2001 From: Matt Webb Date: Thu, 1 Dec 2016 10:36:05 -0600 Subject: [PATCH 2/2] test: vars to const/let & equal to strictEqual --- test/parallel/test-fs-read-stream-resume.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-fs-read-stream-resume.js b/test/parallel/test-fs-read-stream-resume.js index abac0686c11944..3ff89644e5c018 100644 --- a/test/parallel/test-fs-read-stream-resume.js +++ b/test/parallel/test-fs-read-stream-resume.js @@ -1,13 +1,13 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); +const common = require('../common'); +const assert = require('assert'); -var fs = require('fs'); -var path = require('path'); +const fs = require('fs'); +const path = require('path'); -var file = path.join(common.fixturesDir, 'x.txt'); -var data = ''; -var first = true; +const file = path.join(common.fixturesDir, 'x.txt'); +let data = ''; +let first = true; var stream = fs.createReadStream(file); stream.setEncoding('utf8'); @@ -27,5 +27,5 @@ process.nextTick(function() { }); process.on('exit', function() { - assert.equal(data, 'xyz\n'); + assert.strictEqual(data, 'xyz\n'); });