File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,10 @@ describe("saml.ts", function () {
29
29
let getKeyInfosAsPemSpy : sinon . SinonSpy ;
30
30
31
31
beforeEach ( function ( ) {
32
- getKeyInfosAsPemSpy = sinon . spy ( SAML . prototype , < never > "getKeyInfosAsPem" ) ;
33
- sinon . stub ( SAML . prototype , < never > "processValidlySignedPostRequestAsync" ) . resolves ( null ) ;
32
+ getKeyInfosAsPemSpy = sinon . spy ( SAML . prototype , "getKeyInfosAsPem" as never ) ;
33
+ sinon
34
+ . stub ( SAML . prototype , "processValidlySignedPostRequestAsync" as unknown as keyof SAML )
35
+ . resolves ( null ) ;
34
36
} ) ;
35
37
36
38
afterEach ( function ( ) {
@@ -132,7 +134,7 @@ describe("saml.ts", function () {
132
134
it ( "will fail if 'cert' is a callback which returns invalid value" , async ( ) => {
133
135
const cert : IdpCertCallback = ( cb ) => {
134
136
setTimeout ( ( ) => {
135
- cb ( null , < never > null ) ;
137
+ cb ( null , null as never ) ;
136
138
} , 0 ) ;
137
139
} ;
138
140
You can’t perform that action at this time.
0 commit comments