Browse Source

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 <teddy.katz@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6.x
Matt Webb 8 years ago
committed by Anna Henningsen
parent
commit
09de7149f2
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 16
      test/parallel/test-fs-read-stream-resume.js

16
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');
});

Loading…
Cancel
Save