test: refactor test-fs-fsync · nodejs/node@d5e30a6 · GitHub
Skip to content

Commit d5e30a6

Browse files
radelmannevanlucas
authored andcommitted
test: refactor test-fs-fsync
- replace var with const. - remove successes var. - use assert.ifError() for handling all errors. - wrap all callbacks with common.mustCall(). PR-URL: #10176 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent be87441 commit d5e30a6

1 file changed

Lines changed: 14 additions & 23 deletions

File tree

test/parallel/test-fs-fsync.js

Lines changed: 14 additions & 23 deletions

0 commit comments

Comments
 (0)