-
Notifications
You must be signed in to change notification settings - Fork 3
get all courses done #29
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
Conversation
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.
Only need to add the unit tests, make only to presenter! if works the route is already tested!
added toString()
@@ -0,0 +1,49 @@ | |||
import { it, describe, expect } from 'vitest'; | |||
|
|||
import { handler } from '../../../../src/modules/auth_user/app/auth_user_presenter'; |
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.
make the right import!
this.course_repo = course_repo; | ||
} | ||
|
||
async execute(headers: { [key: string]: any }, queryStringParameters: { [key: string]: any }) { |
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.
remove here the queryStringParameters, u are not using!
if (!request.body) { | ||
throw new InvalidRequest("Body"); | ||
} | ||
|
||
const queryParams = request.body.queryStringParameters; |
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.
remove this all!
No description provided.