Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #74 from yeputons/master
Browse files Browse the repository at this point in the history
tests/rmdirSyncRecursive: fixed files access rights from 777 to 444 to actually check something
  • Loading branch information
Ryan McGrath committed Jan 18, 2014
2 parents 354678e + fd7461d commit 012387c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/rmdirSyncRecursive.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ module.exports = testCase({
fs.writeFileSync(f2Path, 'foo bar baz');
fs.writeFileSync(f3Path, 'foo bar baz');

fs.chmodSync(f1Path, '777');
fs.chmodSync(f2Path, '777');
fs.chmodSync(f3Path, '777');
fs.chmodSync(f1Path, '444');
fs.chmodSync(f2Path, '444');
fs.chmodSync(f3Path, '444');

test.equals(fs.existsSync(dir), true, 'Dir should exist - mkdirSyncRecursive not working?');
test.equals(fs.existsSync(f1Path), true, 'File should exist');
Expand Down Expand Up @@ -51,9 +51,9 @@ module.exports = testCase({
fs.writeFileSync(f2Path, 'foo bar baz');
fs.writeFileSync(f3Path, 'foo bar baz');

fs.chmodSync(f1Path, '777');
fs.chmodSync(f2Path, '777');
fs.chmodSync(f3Path, '777');
fs.chmodSync(f1Path, '444');
fs.chmodSync(f2Path, '444');
fs.chmodSync(f3Path, '444');

test.equals(fs.existsSync(dir), true, 'Dir should exist - mkdirSyncRecursive not working?');
test.equals(fs.existsSync(f1Path), true, 'File should exist');
Expand Down

0 comments on commit 012387c

Please sign in to comment.