Node.js based forum software built for the modern web
fix: persona test fail
Barış Soner Uşaklı10a5901e4acc
diff --git a/test/api.js b/test/api.jsindex 64857041f2..0d76fe0067 100644--- a/test/api.js+++ b/test/api.js@@ -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)));