Skip to content

Commit

Permalink
test: refactor test-fs-read-stream-resume
Browse files Browse the repository at this point in the history
Update vars to const/let & equal to strictEqual.

PR-URL: #9927
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Matt Webb authored and Fishrock123 committed Dec 6, 2016
1 parent f68bfc5 commit 84813fd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/parallel/test-fs-read-stream-resume.js
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -27,5 +27,5 @@ process.nextTick(function() {
});

process.on('exit', function() {
assert.equal(data, 'xyz\n');
assert.strictEqual(data, 'xyz\n');
});

0 comments on commit 84813fd

Please sign in to comment.