From cd308b466c7bf2d1e04a306bda9d8951544bb4e4 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Tue, 21 Jul 2020 17:46:48 +0200 Subject: [PATCH] test: Fix zip permissions tests --- lib/plugins/package/lib/zipService.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugins/package/lib/zipService.test.js b/lib/plugins/package/lib/zipService.test.js index acb99c327..a82dcd285 100644 --- a/lib/plugins/package/lib/zipService.test.js +++ b/lib/plugins/package/lib/zipService.test.js @@ -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 ); } });