File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -155,12 +155,12 @@ describe('AuthController', () => {
155155
156156 describe ( 'magicLinkLogin' , ( ) => {
157157 it ( 'should call AuthService.discordLogin' , async ( ) => {
158- const req = { } as Request ;
159- const res = { } as Response ;
160-
161- await controller . magicLinkLogin ( req , res ) ;
162-
163- expect ( mockMagicLinkEmailStrategy . send ) . toHaveBeenCalledWith ( req , res ) ;
158+ // const req = {} as Request;
159+ // const res = {} as Response;
160+ // TODO: Implement this test
161+ // await controller.magicLinkLogin(req, res);
162+ //
163+ // expect(mockMagicLinkEmailStrategy.send).toHaveBeenCalledWith(req, res);
164164 } ) ;
165165 } ) ;
166166
Original file line number Diff line number Diff line change 11import {
22 Controller ,
33 Get ,
4+ HttpException ,
5+ HttpStatus ,
46 Inject ,
57 Logger ,
68 Post ,
@@ -10,9 +12,9 @@ import {
1012} from '@nestjs/common' ;
1113import { AuthGuard } from '@nestjs/passport' ;
1214import { ApiOperation , ApiResponse , ApiTags } from '@nestjs/swagger' ;
15+ import { Throttle } from '@nestjs/throttler' ;
1316import type { Request , Response } from 'express' ;
1417
15- import { Throttle } from '@nestjs/throttler' ;
1618import { AuthService } from './auth.service' ;
1719import { MagicLinkEmailStrategy } from './strategies/magicLinkEmail.strategy' ;
1820
@@ -56,8 +58,11 @@ export class AuthController {
5658 } ,
5759 } ,
5860 } )
61+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5962 public async magicLinkLogin ( @Req ( ) req : Request , @Res ( ) res : Response ) {
60- return this . magicLinkEmailStrategy . send ( req , res ) ;
63+ throw new HttpException ( 'Not implemented' , HttpStatus . NOT_IMPLEMENTED ) ;
64+ // TODO: uncomment this line to enable magic link login
65+ //return this.magicLinkEmailStrategy.send(req, res);
6166 }
6267
6368 @Get ( 'magic-link/callback' )
You can’t perform that action at this time.
0 commit comments