Skip to content
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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

jimmy-lyons
Copy link

No description provided.

it('fetches peeps using fetchPeeps', () => {
fetch.mockResponseOnce(JSON.stringify([{"id":1234, "body":"Testing testing 1,2"}]));

const api = new ChitterApi;
Copy link

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);
})
}
Copy link

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?

Copy link

@LGretzk LGretzk left a 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);
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants