Skip to content

HW2#16

Open
nikola166 wants to merge 1 commit intoromabelka:masterfrom
nikola166:hw2
Open

HW2#16
nikola166 wants to merge 1 commit intoromabelka:masterfrom
nikola166:hw2

Conversation

@nikola166
Copy link

No description provided.


expect(sagaProcess.next().value).toEqual(take(SIGN_IN_REQUEST))

// НЕ понятно зачем передавать {payload: data}. И как это вообще работает
Copy link
Owner

Choose a reason for hiding this comment

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

ну эти данные должны как-то внутри генератора оказаться. Почитай как работают генераторы

expect(sagaProcess.next(user).value).toEqual(
put({ type: SIGN_UP_SUCCESS, payload: { user } })
)
})
Copy link
Owner

Choose a reason for hiding this comment

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

Ок, но можно бы и reducer потестить

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

Comments