Skip to content

Commit

Permalink
fix: user srv tests name
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Dec 30, 2023
1 parent 367aaa4 commit dbd6fa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/internal/service/user/user.service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (t *UserServiceTest) TestFindOneSuccess() {
assert.Equal(t.T(), want, actual)
}

func (t *UserServiceTest) TestFindOneNotFound() {
func (t *UserServiceTest) TestFindOneInternalErr() {
repo := &mock.UserRepositoryMock{}
repo.On("FindById", t.User.ID.String(), &model.User{}).Return(nil, errors.New("Not found user"))

Expand Down Expand Up @@ -130,7 +130,7 @@ func (t *UserServiceTest) TestUpdateSuccess() {
assert.Equal(t.T(), want, actual)
}

func (t *UserServiceTest) TestUpdateNotFound() {
func (t *UserServiceTest) TestUpdateInternalErr() {
repo := &mock.UserRepositoryMock{}
repo.On("Update", t.User.ID.String(), t.UpdateUser).Return(nil, errors.New("Not found user"))

Expand Down Expand Up @@ -161,7 +161,7 @@ func (t *UserServiceTest) TestDeleteSuccess() {
assert.Equal(t.T(), want, actual)
}

func (t *UserServiceTest) TestDeleteNotFound() {
func (t *UserServiceTest) TestDeleteInternalErr() {
repo := &mock.UserRepositoryMock{}
repo.On("Delete", t.User.ID.String()).Return(errors.New("Not found user"))

Expand Down

0 comments on commit dbd6fa1

Please sign in to comment.