mutation test are passing

main
Yanick Champoux 2023-03-09 14:23:50 -05:00
parent 76ccd0d14a
commit e1cb50100f
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
});