diff --git a/assets/tests/hooks/useSwings.test.tsx b/assets/tests/hooks/useSwings.test.tsx index 615a0cd41..0d002b685 100644 --- a/assets/tests/hooks/useSwings.test.tsx +++ b/assets/tests/hooks/useSwings.test.tsx @@ -6,7 +6,7 @@ import useSwings from "../../src/hooks/useSwings" import { initialState } from "../../src/state" import { StateDispatchProvider } from "../../src/contexts/stateDispatchContext" import { RouteTab } from "../../src/models/routeTab" -import routeTabFactory from "../factories/routeTab" +import routeTabFactory, { routeTabPresetFactory } from "../factories/routeTab" import { neverPromise } from "../testHelpers/mockHelpers" import { swingFactory } from "../factories/swing" @@ -41,8 +41,7 @@ describe("useSwings", () => { isCurrentTab: false, selectedRouteIds: ["2"], }), - routeTabFactory.build({ - ordering: undefined, + routeTabPresetFactory.build({ selectedRouteIds: ["3"], }), ]}