test: add a test case for the path.posix.resolve
In posix path.resolve should handle relative paths to be safe
even if process.cwd fails.
At lib/path.js#999:
return resolvedPath.length > 0 ? resolvedPath : '.';
Else branch wasn't covered.
Add a test case to cover this.
PR-URL: https://github.com/nodejs/node/pull/27905
Reviewed-By:
Anna Henningsen <anna@addaleax.net>
Reviewed-By:
Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By:
Rich Trott <rtrott@gmail.com>
Reviewed-By:
Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By:
Сковорода Никита Андреевич <chalkerx@gmail.com>
parent
55de6ff3
Please register or sign in to comment