Open
Conversation
houndci-bot
reviewed
Sep 4, 2018
| expect(createdArticle.User).to.be.an('object').to.have.property('username').to.equal(validUser.user.username); | ||
| expect(createdArticle.User).to.have.property('bio'); | ||
| expect(createdArticle.User).to.have.property('image'); | ||
| // expect(createdArticle.author).to.be.an('object').to.have.property('username').to.equal(validUser.user.username); |
There was a problem hiding this comment.
Line 84 exceeds the maximum line length of 100 max-len
controllers/ArticleController.js
Outdated
| }, | ||
| returning: true, | ||
| plain: true | ||
| }) |
There was a problem hiding this comment.
Expected indentation of 4 spaces but found 6 indent
controllers/ArticleController.js
Outdated
| slug, | ||
| }, | ||
| returning: true, | ||
| plain: true |
There was a problem hiding this comment.
Expected indentation of 6 spaces but found 8 indent
controllers/ArticleController.js
Outdated
| where: { | ||
| slug, | ||
| }, | ||
| returning: true, |
There was a problem hiding this comment.
Expected indentation of 6 spaces but found 8 indent
controllers/ArticleController.js
Outdated
| }) | ||
| where: { | ||
| slug, | ||
| }, |
There was a problem hiding this comment.
Expected indentation of 6 spaces but found 8 indent
controllers/ArticleController.js
Outdated
| plain: true | ||
| }) | ||
| where: { | ||
| slug, |
There was a problem hiding this comment.
Expected indentation of 8 spaces but found 10 indent
controllers/ArticleController.js
Outdated
| returning: true, | ||
| plain: true | ||
| }) | ||
| where: { |
There was a problem hiding this comment.
Expected indentation of 6 spaces but found 8 indent
6e0fe8d to
3d1458b
Compare
Pull Request Test Coverage Report for Build 696
💛 - Coveralls |
3d1458b to
0f6b558
Compare
0f6b558 to
23271bd
Compare
23271bd to
184c467
Compare
184c467 to
ec1543b
Compare
ec1543b to
5a0118c
Compare
5a0118c to
c9ff59a
Compare
c9ff59a to
2b6da23
Compare
2b6da23 to
21bbf51
Compare
21bbf51 to
6917179
Compare
e61c1a0 to
60cf570
Compare
60cf570 to
e30594a
Compare
- include Like model in article response - fix get all article and get an article response [Fixes #160193526]
e30594a to
a6a7ea1
Compare
0275315 to
4db2cdd
Compare
4db2cdd to
d97b14b
Compare
d97b14b to
4044200
Compare
4044200 to
e7a2d82
Compare
e7a2d82 to
71a9490
Compare
71a9490 to
089b9a9
Compare
91e38fb to
dcf69de
Compare
dcf69de to
68c26c5
Compare
- include Like model in article response - fix get all article and get an article response [Fixes #160193526]
houndci-bot
reviewed
Sep 28, 2018
| router.post('/users', validateSignup, UsersController.registerUser); | ||
| router.post('/users/password/reset', inputValidator.validateEmail, utils.checkEmail, utils.sendEmail); | ||
|
|
||
| // router.post('/users/password/reset', inputValidator.validateEmail, utils.checkEmail, utils.sendEmail); |
There was a problem hiding this comment.
Line 46 exceeds the maximum line length of 100 max-len
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Description of Task to be completed?
ISSUE
When a user creates article it should return the number of likes on the article and not return favourites or favourites counts
FIX
Remove favourites and favourites count from the article model add association of likes and article model to get number of likes added to the create article response
How should this be manually tested?
In ComandLine:
git clone https://github.com/andela/fargo-ah-client.git Authors-Haven-Clientnpm installnpm run testAny background context you want to provide?
N/A
What are the relevant pivotal tracker stories?
https://www.pivotaltracker.com/story/show/160193526