fix issues in api
This commit is contained in:
@@ -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',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user