@@ -27,6 +27,7 @@ var bootstrap = function (oauthConfig) {
27
27
grants : [ 'password' , 'refresh_token' ]
28
28
} ) ;
29
29
30
+ app . set ( 'json spaces' , 0 ) ;
30
31
app . use ( express . bodyParser ( ) ) ;
31
32
32
33
app . all ( '/oauth/token' , oauth . grant ( ) ) ;
@@ -394,7 +395,7 @@ describe('Grant', function() {
394
395
client_secret : 'nightworld' ,
395
396
refresh_token : 'abc123'
396
397
} )
397
- . expect ( 200 , / " a c c e s s _ t o k e n " : " ( .* ) " , \n \s + ( .* ) \n \s + " r e f r e s h _ t o k e n " : " ( .* ) " / i, done ) ;
398
+ . expect ( 200 , / " a c c e s s _ t o k e n " : " ( .* ) " , ( .* ) " r e f r e s h _ t o k e n " : " ( .* ) " / i, done ) ;
398
399
399
400
} ) ;
400
401
@@ -436,7 +437,7 @@ describe('Grant', function() {
436
437
client_secret : 'nightworld' ,
437
438
refresh_token : 'abc123'
438
439
} )
439
- . expect ( 200 , / " a c c e s s _ t o k e n " : " ( .* ) " , \n \s + ( .* ) \n \s + " r e f r e s h _ t o k e n " : " ( .* ) " / i, done ) ;
440
+ . expect ( 200 , / " a c c e s s _ t o k e n " : " ( .* ) " , ( .* ) " r e f r e s h _ t o k e n " : " ( .* ) " / i, done ) ;
440
441
441
442
} ) ;
442
443
} ) ;
@@ -630,7 +631,7 @@ describe('Grant', function() {
630
631
. post ( '/oauth/token' )
631
632
. set ( 'Content-Type' , 'application/x-www-form-urlencoded' )
632
633
. send ( validBody )
633
- . expect ( / " a c c e s s _ t o k e n " : " t h o m m y " / , 200 , done ) ;
634
+ . expect ( / " a c c e s s _ t o k e n " : " t h o m m y " / , 200 , done ) ;
634
635
635
636
} ) ;
636
637
} ) ;
0 commit comments