mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: modify backreference test to not check router.all() calls
This commit is contained in:
@@ -199,7 +199,7 @@ describe('API', async () => {
|
||||
});
|
||||
const exclusionPrefixes = ['/api/admin/plugins'];
|
||||
paths = paths.filter(function filterExclusions(path) {
|
||||
return !exclusionPrefixes.some(prefix => path.path.startsWith(prefix));
|
||||
return path.method !== '_all' && !exclusionPrefixes.some(prefix => path.path.startsWith(prefix));
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user