-
Notifications
You must be signed in to change notification settings - Fork 277
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
Jimmy Lyons Frontend Chitter Challenge #120
base: master
Are you sure you want to change the base?
Conversation
it('fetches peeps using fetchPeeps', () => { | ||
fetch.mockResponseOnce(JSON.stringify([{"id":1234, "body":"Testing testing 1,2"}])); | ||
|
||
const api = new ChitterApi; |
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.
minor comment, new ChitterApi could be moved to the before stattement
this.api.postPeep(this.sessionKey, this.userID, peepContent, (result) => { | ||
console.log(result); | ||
}) | ||
} |
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.
does the page display the newly added peep automatically?
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.
Well done, the api seems to be sufficiently tested, I also struggled with the view tests. Like you simple solution to user authentication.
}]; | ||
|
||
const api = new ChitterApi; | ||
const model = new ChitterModel(testPeep); |
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.
interesting that you inject peeps into the model
No description provided.