Skip to content

Commit

Permalink
test: [app] - create a signUpUseCase test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christiangsn committed Mar 5, 2023
1 parent de86691 commit 3252cd0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/@application/useCases/user/signup/signupUseCase.ts
Original file line number Diff line number Diff line change
@@ -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<IUserRepositoryContract>

beforeEach(() => {
userRepository = mock()
})

it('Should be defined', () => {
const controller = new SignupUseCases(userRepository)
expect(controller).toBeDefined()
})
})

0 comments on commit 3252cd0

Please sign in to comment.