Skip to content

Commit abb7320

Browse files
author
Daniel Ribeiro
committed
Fix test mock paths
1 parent d97c1a7 commit abb7320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/pages/ManageProjects.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Project, Priority, Status } from "../types/Project";
66
import { newUTCDatetime } from "../test-utils/utils";
77
import { MemoryRouter } from "react-router-dom";
88

9-
jest.mock("../../apis/projects.api");
9+
jest.mock("../apis/projects.api");
1010

1111
const testData: Project[] = [
1212
{

frontend/src/pages/ManageTasks.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { deleteTask } from "../apis/tasks.api";
55
import { Task, Priority, Status } from "../types/Task";
66
import { newUTCDatetime } from "../test-utils/utils";
77

8-
jest.mock("../../apis/projects.api");
9-
jest.mock("../../apis/tasks.api");
8+
jest.mock("../apis/projects.api");
9+
jest.mock("../apis/tasks.api");
1010

1111
const projectId = 32;
1212

0 commit comments

Comments
 (0)