File tree 3 files changed +3
-9
lines changed
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ const shouldNotHitHandle = utils.shouldNotHitHandle
10
10
const createServer = utils . createServer
11
11
const request = utils . request
12
12
13
- const describePromises = global . Promise ? describe : describe . skip
14
-
15
13
describe ( 'Router' , function ( ) {
16
14
describe ( '.param(name, fn)' , function ( ) {
17
15
it ( 'should reject missing name' , function ( ) {
@@ -264,7 +262,7 @@ describe('Router', function () {
264
262
. expect ( 500 , / E r r o r : b o o m / , done )
265
263
} )
266
264
267
- describePromises ( 'promise support' , function ( ) {
265
+ describe ( 'promise support' , function ( ) {
268
266
it ( 'should pass rejected promise value' , function ( done ) {
269
267
const router = new Router ( )
270
268
const server = createServer ( router )
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ const shouldNotHaveBody = utils.shouldNotHaveBody
14
14
const shouldNotHitHandle = utils . shouldNotHitHandle
15
15
const methods = utils . methods
16
16
17
- const describePromises = global . Promise ? describe : describe . skip
18
-
19
17
describe ( 'Router' , function ( ) {
20
18
describe ( '.route(path)' , function ( ) {
21
19
it ( 'should return a new route' , function ( ) {
@@ -542,7 +540,7 @@ describe('Router', function () {
542
540
} )
543
541
} )
544
542
545
- describePromises ( 'promise support' , function ( ) {
543
+ describe ( 'promise support' , function ( ) {
546
544
it ( 'should pass rejected promise value' , function ( done ) {
547
545
const router = new Router ( )
548
546
const route = router . route ( '/foo' )
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ const shouldNotHaveBody = utils.shouldNotHaveBody
15
15
const shouldNotHitHandle = utils . shouldNotHitHandle
16
16
const methods = utils . methods
17
17
18
- const describePromises = global . Promise ? describe : describe . skip
19
-
20
18
describe ( 'Router' , function ( ) {
21
19
it ( 'should return a function' , function ( ) {
22
20
assert . equal ( typeof Router ( ) , 'function' )
@@ -770,7 +768,7 @@ describe('Router', function () {
770
768
} )
771
769
} )
772
770
773
- describePromises ( 'promise support' , function ( ) {
771
+ describe ( 'promise support' , function ( ) {
774
772
it ( 'should pass rejected promise value' , function ( done ) {
775
773
const router = new Router ( )
776
774
const server = createServer ( router )
You can’t perform that action at this time.
0 commit comments