Please sign in to comment.
test: refactor test-file-write-stream
Replace all `var` occurrences in test-file-write-stream.js with `const` (where they are not being reassigned) and `let` (where they are being reassigned). Add strict comparison to the asserts and if statements: - Replace `assert.equal` with `assert.strictEqual` where: 1. Result of `typeof` being compared to a string literal. 2. Result of `fs.readFileSync` with UTF-8 encoding being compared to a string constant. - Replace `==` with `===` where integer values are being compared to integer literals. Remove unnecessary very IIFE. Use template literals. PR-URL: #8894 Reviewed-By: Luigi Pinca <firstname.lastname@example.org> Reviewed-By: Rich Trott <email@example.com> Reviewed-By: Anna Henningsen <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com>
- Loading branch information...
Showing with 17 additions and 19 deletions.