File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ describe('UserService 의 QRService', () => {
6161 } ) ;
6262
6363 it ( '유저 조회 실패 시 예외 발생' , async ( ) => {
64- repo . findByUserVelogUUID . mockResolvedValueOnce ( null as any ) ;
64+ repo . findByUserVelogUUID . mockResolvedValueOnce ( null as unknown as typeof mockUser ) ;
6565
6666 await expect ( service . create ( velogUUID , ip , userAgent ) ) . rejects . toThrow ( 'QR 토큰 생성 실패: 유저 없음' ) ;
6767 } ) ;
@@ -70,7 +70,7 @@ describe('UserService 의 QRService', () => {
7070 repo . findByUserVelogUUID . mockResolvedValueOnce ( mockUser ) ;
7171 repo . createQRLoginToken . mockRejectedValueOnce ( new DBError ( '생성 실패' ) ) ;
7272
73- await expect ( service . create ( 'uuid-1234' , 'ip' , 'agent' ) ) . rejects . toThrow ( '생성 실패' ) ;
73+ await expect ( service . create ( velogUUID , ip , userAgent ) ) . rejects . toThrow ( '생성 실패' ) ;
7474 } ) ;
7575 } ) ;
7676
You can’t perform that action at this time.
0 commit comments