@@ -30,7 +30,7 @@ describe('CollectionsRepository', () => {
3030 DataverseApiAuthMechanism . API_KEY ,
3131 TestConstants . TEST_DUMMY_API_KEY
3232 )
33-
33+
3434 jest . clearAllMocks ( )
3535 } )
3636
@@ -116,18 +116,20 @@ describe('CollectionsRepository', () => {
116116
117117 describe ( 'createCollection' , ( ) => {
118118 const testNewCollection = createCollectionDTO ( )
119-
119+
120120 const testCreatedCollectionId = 1
121121 const testCreateCollectionResponse = {
122122 data : {
123123 status : 'OK' ,
124124 data : {
125- id : testCreatedCollectionId ,
125+ id : testCreatedCollectionId
126126 }
127127 }
128128 }
129129
130- const expectedNewCollectionRequestPayloadJson = JSON . stringify ( createNewCollectionRequestPayload ( ) )
130+ const expectedNewCollectionRequestPayloadJson = JSON . stringify (
131+ createNewCollectionRequestPayload ( )
132+ )
131133 const expectedApiEndpoint = `${ TestConstants . TEST_API_URL } /dataverses/root`
132134
133135 test ( 'should call the API with a correct request payload' , async ( ) => {
@@ -160,9 +162,7 @@ describe('CollectionsRepository', () => {
160162 jest . spyOn ( axios , 'post' ) . mockRejectedValue ( TestConstants . TEST_ERROR_RESPONSE )
161163
162164 let error = undefined as unknown as WriteError
163- await sut
164- . createCollection ( testNewCollection )
165- . catch ( ( e ) => ( error = e ) )
165+ await sut . createCollection ( testNewCollection ) . catch ( ( e ) => ( error = e ) )
166166
167167 expect ( axios . post ) . toHaveBeenCalledWith (
168168 expectedApiEndpoint ,
0 commit comments