@@ -23,8 +23,8 @@ test.describe('API Gateway Tests to Verify Patch Status Endpoint', () => {
2323 return ;
2424 }
2525 const letter = letters [ 0 ] ;
26- const headers = await patchRequestHeaders ( ) ;
27- const body = await patchValidRequestBody ( letter . id , 'ACCEPTED' ) ;
26+ const headers = patchRequestHeaders ( ) ;
27+ const body = patchValidRequestBody ( letter . id , 'ACCEPTED' ) ;
2828
2929 const response = await request . patch ( `${ baseUrl } /${ SUPPLIER_LETTERS } /${ letter . id } ` , {
3030 headers : headers ,
@@ -58,8 +58,8 @@ test.describe('API Gateway Tests to Verify Patch Status Endpoint', () => {
5858 return ;
5959 }
6060 const letter = letters [ 0 ] ;
61- const headers = await patchRequestHeaders ( ) ;
62- const body = await patchFailureRequestBody ( letter . id , 'REJECTED' ) ;
61+ const headers = patchRequestHeaders ( ) ;
62+ const body = patchFailureRequestBody ( letter . id , 'REJECTED' ) ;
6363
6464 const response = await request . patch ( `${ baseUrl } /${ SUPPLIER_LETTERS } /${ letter . id } ` , {
6565 headers : headers ,
@@ -74,8 +74,8 @@ test.describe('API Gateway Tests to Verify Patch Status Endpoint', () => {
7474 test ( `Patch /letters returns 400 if request Body is invalid` , async ( { request } ) => {
7575
7676 const id = randomUUID ( )
77- const headers = await patchRequestHeaders ( ) ;
78- const body = await patchValidRequestBody ( id , '' ) ;
77+ const headers = patchRequestHeaders ( ) ;
78+ const body = patchValidRequestBody ( id , '' ) ;
7979
8080 const response = await request . patch ( `${ baseUrl } /${ SUPPLIER_LETTERS } /${ id } ` , {
8181 headers : headers ,
@@ -88,9 +88,9 @@ test.describe('API Gateway Tests to Verify Patch Status Endpoint', () => {
8888 } ) ;
8989
9090 test ( `Patch /letters returns 500 if Id doesn't exist for SupplierId` , async ( { request } ) => {
91- const headers = await patchRequestHeaders ( ) ;
91+ const headers = patchRequestHeaders ( ) ;
9292 const id = randomUUID ( )
93- const body = await patchValidRequestBody ( id , 'PENDING' ) ;
93+ const body = patchValidRequestBody ( id , 'PENDING' ) ;
9494
9595 const response = await request . patch ( `${ baseUrl } /${ SUPPLIER_LETTERS } /${ id } ` , {
9696 headers : headers ,
@@ -104,7 +104,7 @@ test.describe('API Gateway Tests to Verify Patch Status Endpoint', () => {
104104 test ( `Patch /letters returns 403 for invalid headers` , async ( { request } ) => {
105105 const headers = await createInvalidRequestHeaders ( ) ;
106106 const id = randomUUID ( )
107- const body = await patchValidRequestBody ( id , 'PENDING' ) ;
107+ const body = patchValidRequestBody ( id , 'PENDING' ) ;
108108
109109 const response = await request . patch ( `${ baseUrl } /${ SUPPLIER_LETTERS } /${ id } ` , {
110110 headers : headers ,
0 commit comments