test(integration) add integration tests for exclude method

This commit is contained in:
Kamil Myśliwiec
2019-09-30 12:31:55 +02:00
parent 593a3d1ac8
commit e64839c71a
5 changed files with 224 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ export function isRouteExcluded(
: originalUrl;
const isExcluded = excludedRoutes.some(({ method, regex }) => {
if (RequestMethod[method] === reqMethod) {
if (RequestMethod.ALL === method || RequestMethod[method] === reqMethod) {
return regex.exec(pathname);
}
return false;