From 8be9d68457afcd1f2286c468d8aa9aff76cb1ba6 Mon Sep 17 00:00:00 2001 From: Matt Webb Date: Thu, 1 Dec 2016 10:36:05 -0600 Subject: [PATCH] test: refactor test-fs-read-stream-resume Update vars to const/let & equal to strictEqual. PR-URL: https://github.com/nodejs/node/pull/9927 Reviewed-By: Teddy Katz Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- 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'); });