Skip to content

Commit 84813fd

Browse files
Matt WebbFishrock123
Matt Webb
authored andcommitted
test: refactor test-fs-read-stream-resume
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]>
1 parent f68bfc5 commit 84813fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/parallel/test-fs-read-stream-resume.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
2+
const common = require('../common');
3+
const assert = require('assert');
44

5-
var fs = require('fs');
6-
var path = require('path');
5+
const fs = require('fs');
6+
const path = require('path');
77

8-
var file = path.join(common.fixturesDir, 'x.txt');
9-
var data = '';
10-
var first = true;
8+
const file = path.join(common.fixturesDir, 'x.txt');
9+
let data = '';
10+
let first = true;
1111

1212
var stream = fs.createReadStream(file);
1313
stream.setEncoding('utf8');
@@ -27,5 +27,5 @@ process.nextTick(function() {
2727
});
2828

2929
process.on('exit', function() {
30-
assert.equal(data, 'xyz\n');
30+
assert.strictEqual(data, 'xyz\n');
3131
});

0 commit comments

Comments
 (0)