-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature/refactor review responses #1381
Conversation
backend/src/services/response.ts
Outdated
break | ||
} | ||
default: | ||
throw GenericError(500, 'Review Kind not recognised', reviewIdQuery) |
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.
Is this suppose to be a Generic Error
or an Internal Error
?
backend/test/services/review.spec.ts
Outdated
@@ -171,6 +160,7 @@ describe('services > review', () => { | |||
expect(smtpMock.requestReviewForAccessRequest).toBeCalled() | |||
}) | |||
|
|||
/* |
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.
What's the reason these tests are commented out?
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.
Good spot, thank you! I commented them out and then moved them to the new response.spec.ts
for some reason. I'll delete the comment block now they've been moved.
|
||
// Store the response |
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.
Is it worth checking if a review has already been approved? And perhaps throwing an error?
Includes: