Skip to content

Conversation

@maximgatilin
Copy link

@romabelka
Вопросы:

  1. Нужно ли было обрабатывать ошибки формы, пришедшие с firebase или будем делать это позже?
  2. Нужно ли было в тестах отправлять запросы к firebase, или можно оставить mock данные?

@romabelka
Copy link
Owner

  1. Нет, дальше мы не будем на это останавливаться, верю что с этим вы вполне разберетесь)
  2. Не надо, здесь идея в том, что можно обойтись без моков

try {
const user = yield call([auth, auth.signInWithEmailAndPassword], payload.email, payload.password)

yield put({
Copy link
Owner

Choose a reason for hiding this comment

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

В общем случае все правильно, хотя нам достаточно onAuthStateChange

@@ -0,0 +1,146 @@
import {
Copy link
Owner

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