mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
test: Fix zip permissions tests
This commit is contained in:
parent
7af0cd8c28
commit
cd308b466c
@ -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
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user