@@ -20,6 +20,7 @@ import StubStateStore from './StubStateStore';
2020import StubResponseValidator from './StubResponseValidator' ;
2121
2222import chai from 'chai' ;
23+ import { Z_NO_COMPRESSION } from 'zlib' ;
2324chai . should ( ) ;
2425let assert = chai . assert ;
2526
@@ -98,7 +99,9 @@ describe("OidcClient", function () {
9899
99100 it ( "should return a promise" , function ( ) {
100101 stubMetadataService . getAuthorizationEndpointResult = Promise . resolve ( "http://sts/authorize" ) ;
101- subject . createSigninRequest ( ) . should . be . instanceof ( Promise ) ;
102+ var p = subject . createSigninRequest ( ) ;
103+ p . should . be . instanceof ( Promise ) ;
104+ p . catch ( e => { } ) ;
102105 } ) ;
103106
104107 it ( "should return SigninRequest" , function ( done ) {
@@ -234,7 +237,9 @@ describe("OidcClient", function () {
234237 describe ( "processSigninResponse" , function ( ) {
235238
236239 it ( "should return a promise" , function ( ) {
237- subject . processSigninResponse ( "state=state" ) . should . be . instanceof ( Promise ) ;
240+ var p = subject . processSigninResponse ( "state=state" ) ;
241+ p . should . be . instanceof ( Promise ) ;
242+ p . catch ( e => { } ) ;
238243 } ) ;
239244
240245 it ( "should fail if no state on response" , function ( done ) {
@@ -273,7 +278,9 @@ describe("OidcClient", function () {
273278
274279 it ( "should return a promise" , function ( ) {
275280 stubMetadataService . getEndSessionEndpointResult = Promise . resolve ( "http://sts/signout" ) ;
276- subject . createSignoutRequest ( ) . should . be . instanceof ( Promise ) ;
281+ var p = subject . createSignoutRequest ( ) ;
282+ p . should . be . instanceof ( Promise ) ;
283+ p . catch ( e => { } ) ;
277284 } ) ;
278285
279286 it ( "should return SignoutRequest" , function ( done ) {
@@ -375,7 +382,9 @@ describe("OidcClient", function () {
375382 describe ( "processSignoutResponse" , function ( ) {
376383
377384 it ( "should return a promise" , function ( ) {
378- subject . processSignoutResponse ( "state=state" ) . should . be . instanceof ( Promise ) ;
385+ var p = subject . processSignoutResponse ( "state=state" ) ;
386+ p . should . be . instanceof ( Promise ) ;
387+ p . catch ( e => { } ) ;
379388 } ) ;
380389
381390 it ( "should return result if no state on response" , function ( done ) {
@@ -427,7 +436,9 @@ describe("OidcClient", function () {
427436 describe ( "clearStaleState" , function ( ) {
428437
429438 it ( "should return a promise" , function ( ) {
430- subject . clearStaleState ( ) . should . be . instanceof ( Promise ) ;
439+ var p = subject . clearStaleState ( ) ;
440+ p . should . be . instanceof ( Promise ) ;
441+ p . catch ( e => { } ) ;
431442 } ) ;
432443
433444 it ( "should call State.clearStaleState" , function ( ) {
0 commit comments