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
fix #707 adding post route for /feeds #729
Conversation
07c4831
to
a5abbda
Compare
a5abbda
to
c3efa8b
Compare
This also needs some tests. |
c3efa8b
to
d0a75d4
Compare
d0a75d4
to
5b6d1bb
Compare
5b6d1bb
to
c134f24
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.
Code looks good. What are we doing about tests? I think we should get some in so we know this works.
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 like the handling for various status codes!
c134f24
to
3413cc5
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.
I think you can include your tests in the describe
that we already have so you won't have to repeat code (DRY vs WET)
Not sure about this because a Post route is different than a GET route. Unless you were referring to something different? |
3413cc5
to
f649b5c
Compare
You're right. If you end up not using |
Some really good ideas in here. I'll just add/answer a few more:
In summary: don't share data between tests, don't rely on one test in another, don't rely on test order. |
f649b5c
to
9bedac9
Compare
updated commit.
9bedac9
to
7a1abeb
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.
Really good. A few small things, and this is R+ from me.
7a1abeb
to
b818a15
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.
Congrats on your first Jest test!
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.
Let's add one more thing to your tests, so we know that the feed gets added. I think that's it, the rest looks great.
b818a15
to
162f285
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.
👍
Issue This PR Addresses
Description
This will allow us to connect our front end and back end to post the data to add the feeds to the master list.
Checklist