fix: persona test fail

isekai-main
Barış Soner Uşaklı 3 years ago committed by GitHub
parent 00eebf10af
commit 10a5901e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -267,7 +267,10 @@ describe('API', async () => {
pathObj.path = pathObj.path.replace(/\/:([^\\/]+)/g, '/{$1}');
return pathObj;
});
const exclusionPrefixes = ['/api/admin/plugins', '/api/compose', '/debug'];
const exclusionPrefixes = [
'/api/admin/plugins', '/api/compose', '/debug',
'/api/user/{userslug}/theme', // from persona
];
paths = paths.filter(path => path.method !== '_all' && !exclusionPrefixes.some(prefix => path.path.startsWith(prefix)));

Loading…
Cancel
Save