auth defined test required
This commit is contained in:
parent
6cf7ce1397
commit
e9cb161f90
|
|
@ -25,3 +25,9 @@ export class VerifyOtpService {
|
|||
return dto;
|
||||
}
|
||||
}
|
||||
|
||||
// // controller veya resolver içinden
|
||||
// const { secret, otpauthUrl } = authService.generate2FASecret('mehmet');
|
||||
// const qrCodeImage = await authService.generateQRCode(otpauthUrl);
|
||||
|
||||
// // qrCodeImage → frontend’e gönder, <img src="data:image/png;base64,..."> diye gösterilebilir
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { CheckController } from './check.controller';
|
||||
|
||||
describe('CheckController', () => {
|
||||
let controller: CheckController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [CheckController],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<CheckController>(CheckController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('check')
|
||||
export class CheckController {}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
import { CheckService } from './check.service';
|
||||
import { CheckController } from './check.controller';
|
||||
|
||||
@Module({
|
||||
providers: [CheckService],
|
||||
controllers: [CheckController]
|
||||
})
|
||||
export class CheckModule {}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { CheckService } from './check.service';
|
||||
|
||||
describe('CheckService', () => {
|
||||
let service: CheckService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [CheckService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<CheckService>(CheckService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class CheckService {}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { RefreshController } from './refresh.controller';
|
||||
|
||||
describe('RefreshController', () => {
|
||||
let controller: RefreshController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [RefreshController],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<RefreshController>(RefreshController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('refresh')
|
||||
export class RefreshController {}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
import { RefreshService } from './refresh.service';
|
||||
import { RefreshController } from './refresh.controller';
|
||||
|
||||
@Module({
|
||||
providers: [RefreshService],
|
||||
controllers: [RefreshController]
|
||||
})
|
||||
export class RefreshModule {}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { RefreshService } from './refresh.service';
|
||||
|
||||
describe('RefreshService', () => {
|
||||
let service: RefreshService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [RefreshService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<RefreshService>(RefreshService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class RefreshService {}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { TokenController } from './token.controller';
|
||||
|
||||
describe('TokenController', () => {
|
||||
let controller: TokenController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [TokenController],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<TokenController>(TokenController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('token')
|
||||
export class TokenController {}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
import { TokenService } from './token.service';
|
||||
import { TokenController } from './token.controller';
|
||||
import { CheckModule } from './check/check.module';
|
||||
import { RefreshModule } from './refresh/refresh.module';
|
||||
|
||||
@Module({
|
||||
providers: [TokenService],
|
||||
controllers: [TokenController],
|
||||
imports: [CheckModule, RefreshModule],
|
||||
})
|
||||
export class TokenModule {}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { TokenService } from './token.service';
|
||||
|
||||
describe('TokenService', () => {
|
||||
let service: TokenService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [TokenService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<TokenService>(TokenService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class TokenService {}
|
||||
Loading…
Reference in New Issue