-
Notifications
You must be signed in to change notification settings - Fork 14
Ht2 #9
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
base: master
Are you sure you want to change the base?
Ht2 #9
Conversation
--- 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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stringify - не очень идея, там ведь функции сравнивать нужно
There was a problem hiding this comment.
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))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ок, но я бы хранил id в объектах
Home Task 2. Panchenko Svetlana.
##HT2.1 Написать тесты на auth
##HT2.2 Чистить форму people после успешного добавления в стор
##HT2.3 Отображать список людей
##HT2.4 Загружать и отображать список ивентов