test: improve code in test-fs-readfile-error · nodejs/node@4bbd50e · GitHub
Skip to content

Commit 4bbd50e

Browse files
edsadrMylesBorins
authored andcommitted
test: improve code in test-fs-readfile-error
* use const instead of var * use common.mustCall to control the functions execution automatically * use assert.strictEqual instead of assert.equal * use assert.notStrictEqual instead of assert.notEqual * use arrow functions PR-URL: #10367 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9840f50 commit 4bbd50e

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

test/parallel/test-fs-readfile-error.js

Lines changed: 15 additions & 15 deletions

0 commit comments

Comments
 (0)