Skip to content
Myr

chore(test): remove promise support check from tests (#6148)

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

Promises are supported in all supported Node.js version so the check is unnecessary

authored by Phillip Barta · committed by GitHub · parent b31910c · Browse files · 2 files+2 added−5 removed
This commit

State

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

Diff stats

2 files+2 added−5 removed

  • tests:+2 added−5 removed

2 files+2 added−5 removed

modified:test/app.route.js+1 added-3 removed
modified:test/app.router.js+1 added-2 removed
4 unmodified lines
5 , request = require('supertest')6 , assert = require('assert')7 , methods = require('methods');89var describePromises = global.Promise ? describe : describe.skip9var shouldSkipQuery = require('./support/utils').shouldSkipQuery1011describe('app.router', function(){12 it('should restore req.params after leaving router', function(done){
948 unmodified lines
961 .expect('route go boom!', done)962 })963 })964966 describePromises('promise support', function () {965 describe('promise support', function () {966 it('should pass rejected promise value', function (done) {967 var app = express()968 var router = new express.Router()969
248 unmodified lines