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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Matt Webb authored and Trott committed Dec 6, 2016
1 parent 5247a0b commit 8be9d68
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 8be9d68

Please sign in to comment.