File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ describe('Authorization Handler', () => {
102
102
app . use ( '/authorize' , handler ) ;
103
103
} ) ;
104
104
105
+ afterEach ( ( ) => {
106
+ jest . restoreAllMocks ( ) ;
107
+ } ) ;
108
+
105
109
describe ( 'HTTP method validation' , ( ) => {
106
110
it ( 'rejects non-GET/POST methods' , async ( ) => {
107
111
const response = await supertest ( app )
@@ -305,7 +309,6 @@ describe('Authorization Handler', () => {
305
309
306
310
it ( 'propagates nonce parameter for OpenID Connect flows' , async ( ) => {
307
311
const mockProviderWithNonce = jest . spyOn ( mockProvider , 'authorize' ) ;
308
- mockProviderWithNonce . mockClear ( ) ;
309
312
310
313
const response = await supertest ( app )
311
314
. get ( '/authorize' )
@@ -334,7 +337,6 @@ describe('Authorization Handler', () => {
334
337
335
338
it ( 'handles authorization without nonce parameter' , async ( ) => {
336
339
const mockProviderWithoutNonce = jest . spyOn ( mockProvider , 'authorize' ) ;
337
- mockProviderWithoutNonce . mockClear ( ) ;
338
340
339
341
const response = await supertest ( app )
340
342
. get ( '/authorize' )
You can’t perform that action at this time.
0 commit comments