mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(platform-express): middleware include RequestMethod
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user