From ae70ddd3f26862cceb2f45e02fd2837cd1a8fa40 Mon Sep 17 00:00:00 2001 From: Kayla Firestack Date: Tue, 22 Oct 2024 12:12:00 -0400 Subject: [PATCH] chore: replace `routeTabFactory` with `ordering: undefined` with `routeTabPresetFactory` --- assets/tests/hooks/useSwings.test.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"], }), ]}