mutation test are passing
This commit is contained in:
parent
76ccd0d14a
commit
e1cb50100f
@ -54,7 +54,7 @@ test('mutation', () => {
|
||||
initial: { nextId: 0, todos: [] as Todo[] },
|
||||
});
|
||||
|
||||
dux.mutation(addTodo, (state, description) => {
|
||||
dux.addMutation(addTodo, (description) => (state) => {
|
||||
state.todos.unshift({ description, id: state.nextId, done: false });
|
||||
state.nextId++;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user