Skip to content

Conversation

@SvetlanaVesna
Copy link

Home Task 2. Panchenko Svetlana.
##HT2.1 Написать тесты на auth
##HT2.2 Чистить форму people после успешного добавления в стор
##HT2.3 Отображать список людей
##HT2.4 Загружать и отображать список ивентов

--- Configure firebase(auth+db)
--- Adding user to db
--- Show errors and loaders in forms
# Conflicts:
#	admin-panel/src/App.js
#	admin-panel/src/ducks/auth.js
#	admin-panel/src/redux/reducer.js
Merge branch 'master' of https://github.com/romabelka/advreact_04_12

# Conflicts:
#	admin-panel/src/App.js
#	admin-panel/src/ducks/auth.js
#	admin-panel/src/redux/reducer.js

const auth = firebase.auth()

expect(JSON.stringify(generator.next().value)).toEqual(JSON.stringify(
Copy link
Owner

Choose a reason for hiding this comment

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

stringify - не очень идея, там ведь функции сравнивать нужно

Copy link
Author

Choose a reason for hiding this comment

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

у меня тест валился, но различий между пришедшими данными и ожидаными не было, так и написано было Contents are identical, но тест не проходил. со stringify проходил.


case GET_EVENTS_SUCCESS:
return state
.update('entities', entities => entities.push(Object.values(payload.events)))
Copy link
Owner

Choose a reason for hiding this comment

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

Ок, но я бы хранил id в объектах

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