Skip to content

Commit

Permalink
chore: replace routeTabFactory with ordering: undefined with `rou…
Browse files Browse the repository at this point in the history
…teTabPresetFactory`
  • Loading branch information
firestack committed Oct 30, 2024
1 parent 4324b62 commit ae70ddd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assets/tests/hooks/useSwings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -41,8 +41,7 @@ describe("useSwings", () => {
isCurrentTab: false,
selectedRouteIds: ["2"],
}),
routeTabFactory.build({
ordering: undefined,
routeTabPresetFactory.build({
selectedRouteIds: ["3"],
}),
]}
Expand Down

0 comments on commit ae70ddd

Please sign in to comment.