Files
introduction-to-testing/examples/task-list/src/actions.test.js
2024-10-01 16:49:45 -05:00

12 lines
281 B
JavaScript

import { setTasks } from './actions';
describe('setTasks', () => {
it('creates a set-tasks action', () => {
const tasks = [{ id: '1', text: 'Task 1', completed: false }];
expect(setTasks(tasks)).toEqual({
type: 'set-tasks',
payload: tasks,
});
});
});