From dbd6fa12d08e1ce7a8e4908125c085eced6e0c20 Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Sat, 30 Dec 2023 21:59:42 +0700 Subject: [PATCH] fix: user srv tests name --- src/internal/service/user/user.service_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/service/user/user.service_test.go b/src/internal/service/user/user.service_test.go index 3f4d1e0..5069207 100644 --- a/src/internal/service/user/user.service_test.go +++ b/src/internal/service/user/user.service_test.go @@ -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")) @@ -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")) @@ -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"))