Skip to content

Commit b654e2b

Browse files
committed
updated snapshots
1 parent d6d6fef commit b654e2b

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

playground/src/features/todos-typesafe/__snapshots__/reducer.spec.ts.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Todos Logic initial state should match a snapshot 1`] = `
3+
exports[`Todos Stories initial state should match a snapshot 1`] = `
44
Object {
5-
"errorMessage": "",
6-
"isFetching": false,
75
"todos": Array [],
86
"todosFilter": "",
97
}

playground/src/features/todos/__snapshots__/reducer.spec.ts.snap

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Todos Logic initial state should match a snapshot 1`] = `
3+
exports[`Todos Stories initial state should match a snapshot 1`] = `
44
Object {
5-
"errorMessage": "",
6-
"isFetching": false,
75
"todos": Array [],
86
"todosFilter": "",
97
}

playground/src/features/todos/reducer.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,13 @@ import * as actions from './actions';
66
import { ADD, CHANGE_FILTER, TOGGLE } from './constants';
77

88
export type TodosState = {
9-
readonly isFetching: boolean;
10-
readonly errorMessage: string | null;
119
readonly todos: Todo[];
1210
readonly todosFilter: TodosFilter;
1311
};
1412

1513
export type TodosAction = ActionType<typeof actions>;
1614

1715
export default combineReducers<TodosState, TodosAction>({
18-
isFetching: (state = false, action) => {
19-
switch (action.type) {
20-
default:
21-
return state;
22-
}
23-
},
24-
errorMessage: (state = null, action) => {
25-
switch (action.type) {
26-
default:
27-
return state;
28-
}
29-
},
3016
todos: (state = [], action) => {
3117
switch (action.type) {
3218
case ADD:

0 commit comments

Comments
 (0)