diff --git a/src/modules/authorization/tests/unit/validate-authorization.usecase.spec.ts b/src/modules/authorization/tests/unit/validate-authorization.usecase.spec.ts index f68d24e..31b6173 100644 --- a/src/modules/authorization/tests/unit/validate-authorization.usecase.spec.ts +++ b/src/modules/authorization/tests/unit/validate-authorization.usecase.spec.ts @@ -3,6 +3,7 @@ import { AutomapperModule } from '@automapper/nestjs'; import { Test, TestingModule } from '@nestjs/testing'; import { ValidateAuthorizationRequest } from '../../domain/dtos/validate-authorization.request'; import { ValidateAuthorizationUseCase } from '../../domain/usecases/validate-authorization.usecase'; +import { ValidateAuthorizationQuery } from '../../queries/validate-authorization.query'; describe('ValidateAuthorizationUseCase', () => { let validateAuthorizationUseCase: ValidateAuthorizationUseCase; @@ -31,7 +32,12 @@ describe('ValidateAuthorizationUseCase', () => { validateAuthorizationRequest.action = 'authorized'; expect( - validateAuthorizationUseCase.execute(validateAuthorizationRequest), + validateAuthorizationUseCase.execute( + new ValidateAuthorizationQuery( + validateAuthorizationRequest.uuid, + validateAuthorizationRequest.action, + ), + ), ).toBeTruthy(); }); });