Skip to content

Commit

Permalink
Update test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 27, 2018
1 parent beb36e2 commit 76bc721
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { readdir, readdirAsync, uidToName, getStat } = require('../');
const { readdir, readdirAsync, uidToName, getStat, chmod } = require('../');
const path = require('path');

readdir('/').then((files) => {
files.map((Stats) => {
Expand All @@ -17,4 +18,26 @@ readdirAsync('/var').then((files) => {

uidToName().then((names) => {
console.log('names:', names);
})
})

const file = path.join(__dirname, 'test.sh');

chmod(file, 777);

chmod(file, {
owner: {
read: true,
write: true,
execute: true
},
group: {
read: true,
write: true,
execute: true
},
others: {
read: true,
write: true,
execute: true
}
});
Empty file added test/test.sh
Empty file.

0 comments on commit 76bc721

Please sign in to comment.