Skip to content

Commit

Permalink
fix(test): update the permision of nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
watilde committed Sep 17, 2017
1 parent 49d57c4 commit 7a736b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/01-chmod.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const isRoot = require('../lib/utils/is-root')

test((t) => {
if (!isRoot()) return t.end()
fs.chmodSync(path.join(__dirname, '../.nyc_output'), '0755')
fs.chmodSync(path.join(__dirname, '../.nyc_output'), '0777')
const files = fs.readdirSync(path.join(__dirname, '../.nyc_output'))
files.forEach((file) => {
fs.chmodSync(path.join(__dirname, `../.nyc_output/${file}`), '0755')
fs.chmodSync(path.join(__dirname, `../.nyc_output/${file}`), '0777')
})
})

0 comments on commit 7a736b1

Please sign in to comment.