Skip to content

Commit

Permalink
fix: auth client mock
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 9, 2024
1 parent a337002 commit 66522a5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/mocks/client/auth/auth.mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package auth

import (
"context"

authProto "github.com/isd-sgcu/johnjud-go-proto/johnjud/auth/auth/v1"
"github.com/stretchr/testify/mock"
"google.golang.org/grpc"
Expand Down Expand Up @@ -45,3 +46,17 @@ func (m *AuthClientMock) SignOut(_ context.Context, in *authProto.SignOutRequest
err, _ := args.Get(1).(error)
return resp, err
}

func (m *AuthClientMock) ForgotPassword(_ context.Context, in *authProto.ForgotPasswordRequest, _ ...grpc.CallOption) (*authProto.ForgotPasswordResponse, error) {
args := m.Called(in)
resp, _ := args.Get(0).(*authProto.ForgotPasswordResponse)
err, _ := args.Get(1).(error)
return resp, err
}

func (m *AuthClientMock) ResetPassword(_ context.Context, in *authProto.ResetPasswordRequest, _ ...grpc.CallOption) (*authProto.ResetPasswordResponse, error) {
args := m.Called(in)
resp, _ := args.Get(0).(*authProto.ResetPasswordResponse)
err, _ := args.Get(1).(error)
return resp, err
}

0 comments on commit 66522a5

Please sign in to comment.