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 e2a42db commit b6b7cc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -41,7 +41,8 @@
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
],
"timeout": 600
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion test/write.js
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 b6b7cc5

Please sign in to comment.