Skip to content

Commit

Permalink
feedback-driven improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed May 14, 2024
1 parent 3cb2757 commit 12f71f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lib/dotcom_web/views/schedule/timetable.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
defmodule DotcomWeb.ScheduleView.Timetable do
@moduledoc """
Functions for showing timetable content.
"""

alias Schedules.Schedule
alias DotcomWeb.ViewHelpers, as: Helpers
alias DotcomWeb.PartialView.SvgIconWithCircle
Expand Down Expand Up @@ -127,8 +131,8 @@ defmodule DotcomWeb.ScheduleView.Timetable do
def cell_via_class(<<_::binary>>), do: " m-timetable__cell--via"

@spec is_ferry(Route.t()) :: boolean
def is_ferry(route), do: Routes.Route.type_atom(route) == :ferry
def is_ferry(route), do: Route.type_atom(route) == :ferry

@spec is_commuter_rail(Route.t()) :: boolean
def is_commuter_rail(route), do: Routes.Route.type_atom(route) == :commuter_rail
def is_commuter_rail(route), do: Route.type_atom(route) == :commuter_rail
end
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ defmodule DotcomWeb.ScheduleController.TimetableControllerTest do
assert platform_stop ==
track_change_for_schedule(
schedule_1,
["stop-1-other-patform"],
[Faker.Internet.slug()],
fn _platform_stop_id -> platform_stop end
)
end
Expand All @@ -305,7 +305,7 @@ defmodule DotcomWeb.ScheduleController.TimetableControllerTest do
assert nil ==
track_change_for_schedule(
schedule_1,
["stop-1-other-patform"],
[Faker.Internet.slug()],
fn _platform_stop_id -> platform_stop end
)
end
Expand Down

0 comments on commit 12f71f7

Please sign in to comment.