From 10a5901e4acc7dbe732e3a059d707c7fb41d1534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 20 Feb 2022 13:43:50 -0500 Subject: [PATCH] fix: persona test fail --- test/api.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/api.js b/test/api.js index 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)));