fix issues in api

This commit is contained in:
2025-12-25 00:46:55 +01:00
parent 9a20a9bbfb
commit ac083363bc
12 changed files with 10 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
import { Mock, vi } from 'vitest';
import { AuthController } from './AuthController';
import { AuthService } from './AuthService';
import { AuthSessionDTO, LoginParams, SignupParams } from './dtos/AuthDto';
import { AuthSessionDTO, LoginParamsDTO, SignupParamsDTO } from './dtos/AuthDto';
import type { CommandResultDTO } from './presenters/CommandResultPresenter';
describe('AuthController', () => {
@@ -21,7 +21,7 @@ describe('AuthController', () => {
describe('signup', () => {
it('should call service.signupWithEmail and return session DTO', async () => {
const params: SignupParams = {
const params: SignupParamsDTO = {
email: 'test@example.com',
password: 'password123',
displayName: 'Test User',
@@ -48,7 +48,7 @@ describe('AuthController', () => {
describe('login', () => {
it('should call service.loginWithEmail and return session DTO', async () => {
const params: LoginParams = {
const params: LoginParamsDTO = {
email: 'test@example.com',
password: 'password123',
};