forked from unimatrix/web
Allow full-size emblems and preserve safe web release retention
This commit is contained in:
parent
320dce718a
commit
d28edebb91
1 changed files with 47 additions and 67 deletions
|
|
@ -24,3 +24,5 @@ test('portrait transport permits the existing 2 MB file contract and retains tig
|
|||
test('the standalone adapter only loads its fixed service allowlist and retains existing client modules',async()=>{
|
||||
const source=await readFile(new URL('../control-panel/public/user-service-entry.mjs',import.meta.url),'utf8');assert.match(source,/modules:\['\.\/internal-mail\.mjs'\]/);assert.match(source,/modules:\['\.\/kit-market\.mjs'\]/);assert.match(source,/if\(!spec\)throw/);assert.doesNotMatch(source,/import\([^)]*searchParams/);
|
||||
});
|
||||
|
||||
test('Clan and Company emblem uploads use the image allowance without widening unrelated endpoints',()=>{const id='c434d560-fab5-4df6-b67a-4456adf823e7';for(const kind of ['clan','company']){assert.equal(panelBodyLimit('POST','/api/'+kind+'-emblems/'+id),2097152);assert.equal(panelBodyLimit('GET','/api/'+kind+'-emblems/'+id),65536);assert.equal(panelBodyLimit('POST','/api/'+kind+'-emblems/not-an-id'),65536);}assert.equal(panelBodyLimit('POST','/api/companies/deeds'),65536);});
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff