Skip to content

Commit

Permalink
Update test/dotcom_web/live/trip_planner_test.exs
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Larson <[email protected]>
  • Loading branch information
thecristen and joshlarson authored Dec 12, 2024
1 parent 9dc4eee commit 2b8e577
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/dotcom_web/live/trip_planner_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ defmodule DotcomWeb.Live.TripPlannerTest do

base_itinerary = Factory.build(:itinerary, legs: [base_leg])

Enum.reduce(headsigns, [], fn headsign, itineraries ->
Enum.map(headsigns, fn headsign ->
leg = update_in(base_leg, [:trip, :trip_headsign], fn _ -> headsign end)
itinerary = update_in(base_itinerary, [:legs], fn _ -> [leg] end)
[itinerary | itineraries]
%{base_itinerary | legs: [leg]}
end)
|> Enum.reverse()
end

test "Preview version behind basic auth", %{conn: conn} do
Expand Down

0 comments on commit 2b8e577

Please sign in to comment.