From 7fc329de2f69a614ba3db50caa66e7a120e44b27 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 16 Dec 2020 14:12:15 -0500 Subject: [PATCH] fix: modify backreference test to not check router.all() calls --- test/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api.js b/test/api.js index fefcdb92e6..6384481903 100644 --- a/test/api.js +++ b/test/api.js @@ -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)); });