fix(platform-express): middleware include RequestMethod

This commit is contained in:
Zclhlmgqzc
2021-07-18 17:56:12 +08:00
parent 22c204df23
commit 383d87e5cd
11 changed files with 115 additions and 99 deletions

View File

@@ -100,7 +100,7 @@ describe('middleware utils', () => {
});
describe('when route is excluded', () => {
const path = '/cats/(.*)';
const exludedRoutes = [
const excludedRoutes = [
{
path,
method: RequestMethod.GET,
@@ -108,7 +108,7 @@ describe('middleware utils', () => {
},
];
it('should return true', () => {
expect(isRouteExcluded({}, exludedRoutes, adapter)).to.be.true;
expect(isRouteExcluded({}, excludedRoutes, adapter)).to.be.true;
});
});
describe('when route is not excluded', () => {