@@ -116,7 +116,7 @@ describe('Testing Joint approval', () => {
116116 await chai . request ( app )
117117 . put ( '/api/registry/org/non_secretariat_org' )
118118 . set ( nonAdminHeaders )
119- . send ( { ...testRegistryOrgForReview , short_name : 'new_non_secretariat_org' , hard_quota : 10000 } )
119+ . send ( { ...testRegistryOrgForReview , short_name : 'new_non_secretariat_org' , contact_info : { website : 'https://www.example.com' } } )
120120 . then ( ( res ) => {
121121 expect ( res ) . to . have . status ( 200 )
122122 expect ( res . body . message ) . to . contain ( 'organization was successfully updated, but joint approval is required for some fields.' )
@@ -144,11 +144,11 @@ describe('Testing Joint approval', () => {
144144 expect ( err ) . to . be . undefined
145145 expect ( res ) . to . have . status ( 200 )
146146 expect ( res . body . short_name ) . to . equal ( 'non_secretariat_org' )
147- expect ( res . body . hard_quota ) . to . equal ( 10000 )
147+ expect ( res . body . contact_info . website ) . to . equal ( 'https://www.example.com' )
148148 } )
149149 } )
150150 it ( 'Secretariat can approve the ORG review with body parameter' , async function ( ) {
151- const newBody = { short_name : 'final_non_secretariat_org' , authority : [ 'SECRETARIAT' ] , hard_quota : 20000 , long_name : 'Final Non Secretariat Organization' }
151+ const newBody = { short_name : 'final_non_secretariat_org' , contact_info : { website : 'https://final.example.com' } , hard_quota : 1000 , authority : [ 'CNA' ] , long_name : 'Final Non Secretariat Organization' }
152152 await chai . request ( app )
153153 . put ( `/api/review/${ reviewUUID } /approve` )
154154 . set ( secretariatHeaders )
@@ -164,7 +164,7 @@ describe('Testing Joint approval', () => {
164164 expect ( err ) . to . be . undefined
165165 expect ( res ) . to . have . status ( 200 )
166166 expect ( res . body . short_name ) . to . equal ( 'final_non_secretariat_org' )
167- expect ( res . body . hard_quota ) . to . equal ( 20000 )
167+ expect ( res . body . contact_info . website ) . to . equal ( 'https://final.example.com' )
168168 } )
169169 } )
170170 } )
@@ -219,7 +219,7 @@ describe('Testing Joint approval', () => {
219219 await chai . request ( app )
220220 . put ( '/api/registry/org/non_with_comments' )
221221 . set ( nonAdminHeaders2 )
222- . send ( { ...testRegistryOrgForReviewWithComments , short_name : 'new_non_with_comments' , hard_quota : 10000 } )
222+ . send ( { ...testRegistryOrgForReviewWithComments , short_name : 'new_non_with_comments' , contact_info : { website : 'https://www.example.com' } } )
223223 . then ( ( res ) => {
224224 expect ( res ) . to . have . status ( 200 )
225225 expect ( res . body . message ) . to . contain ( 'organization was successfully updated, but joint approval is required for some fields.' )
@@ -247,7 +247,7 @@ describe('Testing Joint approval', () => {
247247 expect ( err ) . to . be . undefined
248248 expect ( res ) . to . have . status ( 200 )
249249 expect ( res . body . short_name ) . to . equal ( 'non_with_comments' )
250- expect ( res . body . hard_quota ) . to . equal ( 10000 )
250+ expect ( res . body . contact_info . website ) . to . equal ( 'https://www.example.com' )
251251 } )
252252 } )
253253 it ( 'Secretariat leaves a public comment on the org review' , async ( ) => {
@@ -320,7 +320,7 @@ describe('Testing Joint approval', () => {
320320 expect ( err ) . to . be . undefined
321321 expect ( res ) . to . have . status ( 200 )
322322 expect ( res . body . short_name ) . to . equal ( 'new_non_with_comments' )
323- expect ( res . body . hard_quota ) . to . equal ( 10000 )
323+ expect ( res . body . hard_quota ) . to . equal ( 1000 )
324324 } )
325325 } )
326326 } )
0 commit comments