-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/selection #2
Conversation
43c5c37
to
44dc5fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/isd-sgcu/onboarding-backend/tree/main/golang/11-logging-error
In the next pr, let's use this standard for the Baan hdr/svc + check if Baan tests have unused dependencies. If so, remove them and init the hdr/svc with nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left comments
716423a
to
adc1149
Compare
expectedErr := apperror.BadRequestError("invalid argument") | ||
|
||
context.EXPECT().Bind(t.CreateSelectionReq).Return(expectedErr) | ||
context.EXPECT().BadRequestError(expectedErr.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context.EXPECT().BadRequestError(apperror.BadRequest)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this gets rid of expectedErr := apperror.BadRequestError("invalid argument")
.
If it can be done in 1 line that is not too long, let's do that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context.EXPECT().BadRequestError(apperror.BadRequest)
i think it should be context.EXPECT().BadRequestError(apperror.BadRequest.Error())
because BadRequestError()
takes string
and context.EXPECT().BadRequestError(apperror.BadRequest)
make test failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is final review yay
Change made
Describe what you have done
selection
New Features
Fix
SignUp
return type to*dto.SignupResponse
Others