Skip to content

Commit

Permalink
rm appends to reggi-log.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
reggi committed May 28, 2024
1 parent a5fb49f commit fb2c83a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions workspaces/arborist/test/arborist/reify.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ let failMkdir = null
const fspMock = {
...fsp,
mkdir: async (...args) => {
fs.appendFileSync('reggi-log.txt', 'fspNodeMock.mkdir\n')
if (failMkdir) {
throw failMkdir
}

return fsp.mkdir(...args)
},
rename: async (...args) => {
fs.appendFileSync('reggi-log.txt', 'fspNodeMock.rename\n')
if (failRename) {
throw failRename
} else if (failRenameOnce) {
Expand All @@ -35,7 +33,6 @@ const fspMock = {
}
},
rm: async (...args) => {
fs.appendFileSync('reggi-log.txt', 'fspNodeMock.rm\n')
if (failRm) {
throw new Error('rm fail')
}
Expand Down

0 comments on commit fb2c83a

Please sign in to comment.