77it ( 'none match' , ( ) => {
88 const result = new AndMatcher ( [
99 new MethodMatcher ( [ 'POST' ] ) ,
10- new MethodMatcher ( [ 'POST ' ] ) ,
11- ] )
12- . match ( httpMocks . createRequest ( ) , httpMocks . createResponse ( ) )
10+ new ExactUrlPathnameMatcher ( [ '/test ' ] ) ,
11+ ] ) . match ( httpMocks . createRequest ( ) , httpMocks . createResponse ( ) )
12+
1313 expect ( result ) . toStrictEqual ( {
1414 matched : false ,
1515 } )
@@ -20,6 +20,7 @@ it('first match, second not', () => {
2020 new MethodMatcher ( [ 'GET' ] ) ,
2121 new ExactUrlPathnameMatcher ( [ '/test' ] ) ,
2222 ] ) . match ( httpMocks . createRequest ( ) , httpMocks . createResponse ( ) )
23+
2324 expect ( result ) . toStrictEqual ( {
2425 matched : false ,
2526 } )
@@ -35,6 +36,7 @@ it('first not match, but second', () => {
3536 new MethodMatcher ( [ 'GET' ] ) ,
3637 new ExactUrlPathnameMatcher ( [ '/test' ] ) ,
3738 ] ) . match ( request , httpMocks . createResponse ( ) )
39+
3840 expect ( result ) . toStrictEqual ( {
3941 matched : false ,
4042 } )
@@ -49,6 +51,7 @@ it('both match', () => {
4951 new MethodMatcher ( [ 'GET' ] ) ,
5052 new ExactUrlPathnameMatcher ( [ '/test' ] ) ,
5153 ] ) . match ( request , httpMocks . createResponse ( ) )
54+
5255 expect ( result ) . toStrictEqual ( {
5356 matched : true ,
5457 and : [
0 commit comments