mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: persona test fail
This commit is contained in:
committed by
GitHub
parent
00eebf10af
commit
10a5901e4a
@@ -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)));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user