File tree Expand file tree Collapse file tree
packages/issuer-rest/lib/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ describe('Nonce Endpoint', () => {
7676 await new Promise ( ( resolve ) => setTimeout ( ( v : void ) => resolve ( v ) , 500 ) )
7777 } )
7878
79- it ( 'should return fresh c_nonce without authorization ' , async ( ) => {
79+ it ( 'should return fresh c_nonce' , async ( ) => {
8080 const res = await requests ( app ) . post ( '/nonce' ) . send ( )
8181
8282 expect ( res . statusCode ) . toEqual ( 200 )
@@ -101,19 +101,6 @@ describe('Nonce Endpoint', () => {
101101 expect ( storedNonce ?. expiresAt ) . toBeGreaterThan ( Math . floor ( Date . now ( ) / 1000 ) )
102102 } )
103103
104- it ( 'should return error with invalid access token' , async ( ) => {
105- const res = await requests ( app )
106- . post ( '/nonce' )
107- . set ( 'Authorization' , 'Bearer invalid-token' )
108- . send ( )
109-
110- expect ( res . statusCode ) . toEqual ( 400 )
111- const actual = JSON . parse ( res . text )
112- expect ( actual ) . toEqual ( {
113- error : 'invalid_token'
114- } )
115- } )
116-
117104 it ( 'should work when nonce endpoint is disabled' , async ( ) => {
118105 const disabledVcIssuer = new VcIssuer (
119106 {
You can’t perform that action at this time.
0 commit comments