fix: persona test fail

This commit is contained in:
Barış Soner Uşaklı
2022-02-20 13:43:50 -05:00
committed by GitHub
parent 00eebf10af
commit 10a5901e4a

View File

@@ -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)));