@@ -105,9 +105,9 @@ describe('GenericUserMetadataModelService', () => {
105105 jest . spyOn ( service , 'byId' ) . mockResolvedValue ( null ) ;
106106
107107 // Act & Assert
108- await expect (
109- service . getUserMetadataById ( 'non-existent' ) ,
110- ) . rejects . toThrow ( NotFoundException ) ;
108+ await expect ( service . getUserMetadataById ( 'non-existent' ) ) . rejects . toThrow (
109+ NotFoundException ,
110+ ) ;
111111 } ) ;
112112
113113 it ( 'should rethrow RuntimeException' , async ( ) => {
@@ -117,19 +117,19 @@ describe('GenericUserMetadataModelService', () => {
117117 . mockRejectedValue ( new RuntimeException ( 'runtime error' ) ) ;
118118
119119 // Act & Assert
120- await expect (
121- service . getUserMetadataById ( 'metadata-123' ) ,
122- ) . rejects . toThrow ( RuntimeException ) ;
120+ await expect ( service . getUserMetadataById ( 'metadata-123' ) ) . rejects . toThrow (
121+ RuntimeException ,
122+ ) ;
123123 } ) ;
124124
125125 it ( 'should throw InternalServerErrorException on unexpected error' , async ( ) => {
126126 // Arrange
127127 jest . spyOn ( service , 'byId' ) . mockRejectedValue ( new Error ( 'db error' ) ) ;
128128
129129 // Act & Assert
130- await expect (
131- service . getUserMetadataById ( 'metadata-123' ) ,
132- ) . rejects . toThrow ( InternalServerErrorException ) ;
130+ await expect ( service . getUserMetadataById ( 'metadata-123' ) ) . rejects . toThrow (
131+ InternalServerErrorException ,
132+ ) ;
133133 } ) ;
134134 } ) ;
135135
@@ -288,9 +288,9 @@ describe('GenericUserMetadataModelService', () => {
288288 . mockRejectedValue ( new RuntimeException ( 'runtime error' ) ) ;
289289
290290 // Act & Assert
291- await expect (
292- service . getUserMetadataByUserId ( 'user-123' ) ,
293- ) . rejects . toThrow ( RuntimeException ) ;
291+ await expect ( service . getUserMetadataByUserId ( 'user-123' ) ) . rejects . toThrow (
292+ RuntimeException ,
293+ ) ;
294294 } ) ;
295295
296296 it ( 'should throw InternalServerErrorException on unexpected error' , async ( ) => {
@@ -300,9 +300,9 @@ describe('GenericUserMetadataModelService', () => {
300300 . mockRejectedValue ( new Error ( 'db error' ) ) ;
301301
302302 // Act & Assert
303- await expect (
304- service . getUserMetadataByUserId ( 'user-123' ) ,
305- ) . rejects . toThrow ( InternalServerErrorException ) ;
303+ await expect ( service . getUserMetadataByUserId ( 'user-123' ) ) . rejects . toThrow (
304+ InternalServerErrorException ,
305+ ) ;
306306 } ) ;
307307 } ) ;
308308
0 commit comments