Skip to content

Commit 590582e

Browse files
committed
chore: cloudcmd: actions: lint ☘️
1 parent 91c0245 commit 590582e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎test/rest/pack.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,12 @@ test('cloudcmd: rest: pack: get: path traversal', async (t) => {
286286
type: 'buffer',
287287
});
288288

289-
t.notOk(body.toString().includes('CANARY'), 'should not serve file outside root');
289+
t.notOk(
290+
body
291+
.toString()
292+
.includes('CANARY'),
293+
'should not serve file outside root',
294+
);
290295
t.end();
291296
});
292297

@@ -302,6 +307,6 @@ test('cloudcmd: rest: pack: get: path traversal: error message', async (t) => {
302307
// %2f-encoded slashes bypass URL normalisation; this is the exact PoC vector
303308
const {body} = await request.get('/api/v1/pack..%2f..%2f..%2ftmp%2fcc-outside%2fsecret.txt.tar.gz');
304309

305-
t.match(body, /beyond root/, 'should return beyond root error');
310+
t.match(body, 'beyond root', 'should return beyond root error');
306311
t.end();
307312
});

0 commit comments

Comments
 (0)