Skip to content

Commit

Permalink
refactor(tests): clean up default mocks in propertiesPanel.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
lemald committed Oct 23, 2023
1 parent 96d3ee7 commit f57cd79
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions assets/tests/components/propertiesPanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jest.mock("../../src/hooks/useVehiclesForRoute", () => ({
}))

jest.mock("../../src/hooks/useNearestIntersection", () => ({
__esModule: true,
useNearestIntersection: jest.fn(() => {
return {
is_loading: true,
Expand All @@ -44,20 +43,14 @@ jest.mock("../../src/hooks/useNearestIntersection", () => ({
}))

jest.mock("../../src/hooks/useStations", () => ({
__esModule: true,
useStations: jest.fn(() => []),
}))

jest.mock("../../src/hooks/useShapes", () => ({
__esModule: true,
useTripShape: jest.fn(),
}))

jest.mock("../../src/hooks/useMinischedule", () => ({
__esModule: true,
useMinischeduleRun: jest.fn(),
useMinischeduleBlock: jest.fn(),
}))
jest.mock("../../src/hooks/useMinischedule")

const route: Route = routeFactory.build({
id: "39",
Expand Down

0 comments on commit f57cd79

Please sign in to comment.