Skip to content

Commit 526f512

Browse files
committed
test: add assert that bulk maintains directory permissions too.
1 parent a86dcf8 commit 526f512

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/archiver.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('archiver', function() {
2727

2828
if (!win32) {
2929
fs.chmodSync('test/fixtures/executable.sh', 0777);
30+
fs.chmodSync('test/fixtures/directory/subdir/', 0755);
3031
}
3132
});
3233

@@ -256,6 +257,10 @@ describe('archiver', function() {
256257
assert.property(entries, 'level0.txt');
257258
assert.propertyVal(entries['level0.txt'], 'prop', 'value');
258259
});
260+
261+
it('should retain directory permissions', function() {
262+
assert.propertyVal(entries['subdir/'], 'mode', win32 ? 438 : 493);
263+
});
259264
});
260265
});
261266
});

0 commit comments

Comments
 (0)