Skip to content

Commit

Permalink
fix(test): remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
watilde committed Sep 17, 2017
1 parent 732ccfd commit 49d57c4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/01-chmod.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
const fs = require('fs')
const path = require('path')
const test = require('tap').test
const isRoot = require('../lib/utils/is-root')

test((t) => {
fs.chmodSync(path.join(__dirname, '../.nyc_output'), '7777')
if (!isRoot()) return t.end()
fs.chmodSync(path.join(__dirname, '../.nyc_output'), '0755')
const files = fs.readdirSync(path.join(__dirname, '../.nyc_output'))
files.forEach((file) => {
fs.chmodSync(path.join(__dirname, `../.nyc_output/${file}`), '7777')
})
require('child_process').exec('ls -la .nyc_output', (e, out) => {
console.log('ls -la')
console.log(out)
t.end()
fs.chmodSync(path.join(__dirname, `../.nyc_output/${file}`), '0755')
})
})

0 comments on commit 49d57c4

Please sign in to comment.