From 3252cd0aef560f154825a3965ffaa8966dce9276 Mon Sep 17 00:00:00 2001 From: christiangsn Date: Sun, 5 Mar 2023 03:56:32 -0300 Subject: [PATCH] test: [app] - create a signUpUseCase test #6 --- .../useCases/user/signup/signupUseCase.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/@application/useCases/user/signup/signupUseCase.ts diff --git a/tests/@application/useCases/user/signup/signupUseCase.ts b/tests/@application/useCases/user/signup/signupUseCase.ts new file mode 100644 index 0000000..9aaf222 --- /dev/null +++ b/tests/@application/useCases/user/signup/signupUseCase.ts @@ -0,0 +1,17 @@ +import { SignupUseCases } from '@application/useCases/user/signup/signUpUseCases' +import { type IUserRepositoryContract } from '@domain/contracts/repositories/userRepository.contract' + +import { mock, type MockProxy } from 'jest-mock-extended' + +describe('SignUpUseCase', () => { + let userRepository: MockProxy + + beforeEach(() => { + userRepository = mock() + }) + + it('Should be defined', () => { + const controller = new SignupUseCases(userRepository) + expect(controller).toBeDefined() + }) +})