Skip to content

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

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

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

Conversation

@ksenipetrova
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
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 не хватает проверки на плохие аргументы, а так все хорошо

Comment thread formatDate.js

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

Choose a reason for hiding this comment

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

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

Comment thread formatDate.js

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

Choose a reason for hiding this comment

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

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

Comment thread showTweets.js
}

function getTweets () {
return new Promise((resolve, reject) => {
Copy link
Copy Markdown
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