tests/rmdirSyncRecursive: fixed files access rights from 777 to 444 to actually check something #74

Merged
yeputons merged 1 commit from master into master 2014-01-17 18:36:46 -08:00
Showing only changes of commit fd7461dc44 - Show all commits

View file

@ -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');
@ -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');