Skip to content

Commit b9610ad

Browse files
committed
test: assert fs.rmSync EINVAL message
Signed-off-by: Shaurya Saria <sariashaurya09@gmail.com> Assisted-by: Codex
1 parent 0856f42 commit b9610ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎test/parallel/test-fs-rm.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ if (isGitPresent) {
240240
code: 'EINVAL',
241241
errno: -22,
242242
syscall: 'rm',
243+
message: /^EINVAL: invalid argument, rm/,
243244
});
244245
} finally {
245246
fs.rmSync(dotDir, common.mustNotMutateObjectDeep({

0 commit comments

Comments
 (0)