mutation test are passing

This commit is contained in:
Yanick Champoux 2023-03-09 14:23:50 -05:00
parent 76ccd0d14a
commit e1cb50100f

View File

@ -54,7 +54,7 @@ test('mutation', () => {
initial: { nextId: 0, todos: [] as Todo[] }, 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.todos.unshift({ description, id: state.nextId, done: false });
state.nextId++; state.nextId++;
}); });