Skip to content

Commit

Permalink
test: add error assertions for windows as well
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Apr 19, 2024
1 parent 55eb081 commit 22ed3b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/drivers/fs/copy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ test.group('FS Driver | copy', () => {

await assert.rejects(async () => {
await fdfs.copy('foo', destination)
}, /ENOTSUP: operation not supported|EISDIR: illegal operation on a/)
}, /ENOTSUP: operation not supported|EISDIR: illegal operation on a|EPERM: operation not permitted/)
})
})
2 changes: 1 addition & 1 deletion tests/drivers/fs/move.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ test.group('FS Driver | move', () => {

await assert.rejects(async () => {
await fdfs.move('foo', destination)
}, /ENOTSUP: operation not supported|EISDIR: illegal operation on a/)
}, /ENOTSUP: operation not supported|EISDIR: illegal operation on a|EPERM: operation not permitted/)
})
})

0 comments on commit 22ed3b4

Please sign in to comment.