File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,25 @@ describe('app.router', function(){
35
35
} )
36
36
37
37
describe ( 'methods' , function ( ) {
38
+ function getMajorVersion ( versionString ) {
39
+ return versionString . split ( '.' ) [ 0 ] ;
40
+ }
41
+
42
+ function shouldSkipQuery ( versionString ) {
43
+ // Temporarily skipping this test on 21 and 22
44
+ // update this implementation to run on those release lines on supported versions once they exist
45
+ // upstream tracking https://github.com/nodejs/node/pull/51719
46
+ // express tracking issue: https://github.com/expressjs/express/issues/5615
47
+ var majorsToSkip = {
48
+ "21" : true ,
49
+ "22" : true
50
+ }
51
+ return majorsToSkip [ getMajorVersion ( versionString ) ]
52
+ }
53
+
38
54
methods . concat ( 'del' ) . forEach ( function ( method ) {
39
55
if ( method === 'connect' ) return ;
56
+ if ( method === 'query' && shouldSkipQuery ( process . versions . node ) ) return
40
57
41
58
it ( 'should include ' + method . toUpperCase ( ) , function ( done ) {
42
59
var app = express ( ) ;
You can’t perform that action at this time.
0 commit comments