Skip to content

Commit

Permalink
chore: fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Dec 10, 2022
1 parent 96427a3 commit 805b3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ t.test('mode', t => {

const check = t => {
t.equal(fs.readFileSync(p, 'utf8'), 'ok')
t.equal(fs.statSync(p).mode & 0o777, 0o700)
t.equal(fs.statSync(p).mode & 0o777, process.platform === 'win32' ? 0o666 : 0o700)
fs.unlinkSync(p)
t.end()
}
Expand Down

0 comments on commit 805b3d1

Please sign in to comment.