actions
|
* |
4 |
logIn()
|
logIn |
1 |
should create an action to log user in
|
- |
|
logInSuccess()
|
logInSuccess |
1 |
should create an action to notify user log in success
|
- |
|
logInFailure()
|
logInFailure |
1 |
should create an action to notify user log in failure
|
- |
|
logOut()
|
logOut |
1 |
should create an action to log user out
|
- |
|
components
|
* |
4 |
<AuthForm />
|
AuthForm |
3 |
should render login form
|
- |
|
should not submit form with empty credentials
|
- |
|
should call onSubmit() when form is properly submitted
|
- |
|
<AuthApp />
|
AuthApp |
1 |
should contain <AuthForm /> component
|
- |
|
reducers
|
* |
5 |
authReducer()
|
authReducer |
5 |
should handle unknown or missing actions
|
- |
|
should handle LOGIN_REQUEST
|
- |
|
should handle LOGIN_SUCCESS
|
- |
|
should handle LOGIN_FAILURE
|
- |
|
should handle LOGOUT
|
- |
|
App
|
* |
1 |
rootReducer()
|
rootReducer |
1 |
should return the initial state
|
- |
|
actions
|
* |
5 |
addTodo()
|
addTodo |
1 |
should create an action to add a todo
|
- |
|
removeTodo()
|
removeTodo |
1 |
should create an action to remove a todo
|
- |
|
toggleTodo()
|
toggleTodo |
1 |
should create an action to toggle a todo
|
- |
|
clearTodo()
|
clearTodo |
1 |
should create an action to clear completed todo
|
- |
|
setTodoFilter()
|
setTodoFilter |
1 |
should create an action to set the todo filter
|
- |
|
components
|
* |
20 |
<Todo />
|
Todo |
3 |
should render a todo
|
- |
|
should call onClick() when label is clicked
|
- |
|
should call onButtonClick() when button is clicked
|
- |
|
<TodoList />
|
TodoList |
1 |
should render filtered todos
|
- |
|
<TodoForm />
|
TodoForm |
3 |
should render a form to add a todo
|
- |
|
should not submit form with an empty label
|
- |
|
should submit form when a label is given
|
- |
|
<FilterLink />
|
FilterLink |
3 |
should generate a clickable link to filter todos
|
- |
|
should not be clickable if filter is already active
|
- |
|
should display the filter name properly
|
- |
|
<TodoFilterLinks />
|
TodoFilterLinks |
3 |
should render all filter links
|
- |
|
should set proper filter as active
|
- |
|
should pass a fonction as onClick property
|
- |
|
<TodoFooter />
|
TodoFooter |
3 |
should not display clear link if there isn't completed todo
|
- |
|
should display clear link if there is completed todo
|
- |
|
should call onTodoClearClick on clear link click
|
- |
|
<TodoApp />
|
TodoApp |
4 |
should contain <TodoForm /> component
|
- |
|
should contain <TodoFilterLinks /> component
|
- |
|
should contain <TodoList /> component
|
- |
|
should contain <TodoFooter /> component
|
- |
|
reducers
|
* |
7 |
todosReducer()
|
todosReducer |
5 |
should handle unknown or missing actions
|
- |
|
should handle ADD_TODO
|
- |
|
should handle REMOVE_TODO
|
- |
|
should handle TOGGLE_TODO
|
- |
|
should handle CLEAR_TODO
|
- |
|
todoFiltersReducer()
|
todoFiltersReducer |
2 |
should handle unknown or missing actions
|
- |
|
should handle SET_TODO_FILTER
|
- |
|
actions
|
* |
3 |
fetchUsers()
|
fetchUsers |
1 |
should create an action to fetch users
|
- |
|
fetchUsersSuccess()
|
fetchUsersSuccess |
1 |
should create an action to notify user fetch success
|
- |
|
fetchUsersError()
|
fetchUsersError |
1 |
should create an action to notify user fetch error
|
- |
|
components
|
* |
7 |
<User />
|
User |
1 |
should render a user
|
- |
|
<UserList />
|
UserList |
1 |
should render a user list
|
- |
|
<UserError />
|
UserError |
1 |
should render an error
|
- |
|
<UserHeader />
|
UserHeader |
1 |
should call a function on refresh button click
|
- |
|
<UserApp />
|
UserApp |
3 |
should contain <UserHeader /> component
|
- |
|
should contain <UserList /> component
|
- |
|
should not contain <UserError /> component
|
- |
|
reducers
|
* |
4 |
usersReducer()
|
usersReducer |
4 |
should handle unknown or missing actions
|
- |
|
should handle FETCH_USERS
|
- |
|
should handle FETCH_USERS_SUCCESS
|
- |
|
should handle FETCH_USERS_ERROR
|
- |
|