test: Fix zip permissions tests

This commit is contained in:
Mariusz Nowak 2020-07-21 17:46:48 +02:00 committed by Mariusz Nowak
parent 7af0cd8c28
commit cd308b466c

View File

@ -694,11 +694,11 @@ describe('zipService', () => {
'bin': {
'binary-777': {
content: 'some content',
permissions: 777,
permissions: 0o777,
},
'binary-444': {
content: 'some content',
permissions: 444,
permissions: 0o444,
},
},
// lib
@ -820,12 +820,12 @@ describe('zipService', () => {
} else {
// binary file is set with chmod of 777
expect(unzippedFileData['bin/binary-777'].unixPermissions).to.equal(
Math.pow(2, 15) + 777
Math.pow(2, 15) + 0o777
);
// read only file is set with chmod of 444
expect(unzippedFileData['bin/binary-444'].unixPermissions).to.equal(
Math.pow(2, 15) + 444
Math.pow(2, 15) + 0o444
);
}
});