Skip to content

Comments

Петрова Ксения#12

Open
ksenipetrova wants to merge 1 commit intourfu-2016:masterfrom
ksenipetrova:master
Open

Петрова Ксения#12
ksenipetrova wants to merge 1 commit intourfu-2016:masterfrom
ksenipetrova:master

Conversation

@ksenipetrova
Copy link

No description provided.

Copy link
Collaborator

@zmenka zmenka left a comment

Choose a reason for hiding this comment

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

Не хватает тестов для получения твитов и в formatDate не хватает проверки на плохие аргументы, а так все хорошо


function formatDate(date) {
// Напишите код форматирования даты в этом месте
date = new Date(date);
Copy link
Collaborator

Choose a reason for hiding this comment

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

лучше входные данные не менять


function formatDate(date) {
// Напишите код форматирования даты в этом месте
date = new Date(date);
Copy link
Collaborator

Choose a reason for hiding this comment

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

а если из api некорректное что-то придет? null, например

}

function getTweets () {
return new Promise((resolve, reject) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

за промисы 👍

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