Skip to content

Luiza's Chitter Front-end Challenge - #116

Open
LGretzk wants to merge 15 commits into
makersacademy:masterfrom
LGretzk:master
Open

Luiza's Chitter Front-end Challenge#116
LGretzk wants to merge 15 commits into
makersacademy:masterfrom
LGretzk:master

Conversation

@LGretzk

@LGretzk LGretzk commented Jun 6, 2022

Copy link
Copy Markdown

Sign up, login and posting complete. Didn't have the time to add error catching.

Comment thread chitterApi.js
.then(response => response.json())
.then(data => callback(data));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the functions below should have a try-catch block

Comment thread messagesView.js
let time = timeString.substring(11, 19);
return time + " " + date;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you added so many elements to your messages. I didn't get round to doing this.

Comment thread messagesView.test.js

require('jest-fetch-mock').enableMocks();
jest.mock('./chitterApi');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is something I missed when they changed the repo part way through!

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