-
-
Notifications
You must be signed in to change notification settings - Fork 40
[Mega-Feat]: Implement Group Endpoints #340
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
test/routes/group.test.js
Outdated
| title: "Group 1", | ||
| student: "64fdc67feca8a69f01b33614", | ||
| }); | ||
|
|
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.
check content-type for post and update operations is it is json or not
eg :- expect(response.headers["content-type"]).toMatch(/json/);
refer accreditation.test.js
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.
Whoops! missed that...
Added the necessary checks now :)
Thanks...
|
|
||
| function cleanUp(callback) { | ||
| groupModel | ||
| .remove({ |
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.
you should pass only id as parameter in remove(delete) operation not with title because in group models we are taking only groupId as input
|
LGTM |
TejasNair9977
left a comment
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.
lgtm
Description
This PR adds the Group endpoints to the project. It includes the following changes:
app.jsFixes
#314
Checklist