Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
macgeargear committed Jan 13, 2024
1 parent 79e5ad3 commit 0ecdc89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mocks/pet/pet.mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package pet

import (
"github.com/isd-sgcu/johnjud-backend/src/app/model/pet"
proto "github.com/isd-sgcu/johnjud-go-proto/johnjud/backend/pet/v1"
"github.com/stretchr/testify/mock"
)

Expand Down Expand Up @@ -30,8 +29,8 @@ func (r *RepositoryMock) Create(in *pet.Pet) error {
return args.Error(1)
}

func (r *RepositoryMock) FindAll(result *[]*pet.Pet, query *proto.FindAllPetRequest) error {
args := r.Called(*result, query)
func (r *RepositoryMock) FindAll(result *[]*pet.Pet) error {
args := r.Called(*result)

if args.Get(0) != nil {
*result = *args.Get(0).(*[]*pet.Pet)
Expand Down

0 comments on commit 0ecdc89

Please sign in to comment.