Skip to content
Myr

skip QUERY method test (#5628)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jon Church · committed by GitHub · parent bf91946 · Browse files · 1 file+17 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:test/app.router.js+17 added
33 unmodified lines
34 .expect(200, '1', done);35 })3637 describe('methods', function(){38 function getMajorVersion(versionString) {39 return versionString.split('.')[0];40 }4142 function shouldSkipQuery(versionString) {43 // Temporarily skipping this test on 21 and 2244 // update this implementation to run on those release lines on supported versions once they exist45 // upstream tracking https://github.com/nodejs/node/pull/5171946 // express tracking issue: https://github.com/expressjs/express/issues/561547 var majorsToSkip = {48 "21": true,49 "22": true50 }51 return majorsToSkip[getMajorVersion(versionString)]52 }5354 methods.concat('del').forEach(function(method){55 if (method === 'connect') return;56 if (method === 'query' && shouldSkipQuery(process.versions.node)) return5758 it('should include ' + method.toUpperCase(), function(done){59 var app = express();60
1068 unmodified lines