import { tasks, users } from "./reducers";
describe("tasks", () => {
it("returns the initial state", () => {
expect(tasks(undefined, {})).toEqual([]);
it("adds a task", () => {
const task = { id: 1, name: "test" };
const action = { type: "NEW_TASK", task: task };
expect(tasks([], action)).toContainEqual(expect.objectContaining(task));