Commit 907ce8dd authored by Adrian Estrada's avatar Adrian Estrada Committed by James M Snell
Browse files

test: refactor test-fs-error-messages.js

* group tests by error type
* improve error validation for all messages
* use assert.throws instead of try and catch
* use arrow functions
* add missing test for readdir
* add missing test for readFileSync
* remove unnecessary variables

PR-URL: https://github.com/nodejs/node/pull/11096


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarItalo A. Casas <me@italoacasas.com>
parent 42e73ae3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment