Skip to content

Commit 42908a6

Browse files
authored
feat: Last trip prefix (#1517)
* feat(Android): Implement last trip tags * feat(iOS): Implement last trip tags * test: Fix broken tests
1 parent d2433a3 commit 42908a6

File tree

46 files changed

+2242
-639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2242
-639
lines changed

androidApp/src/androidTest/java/com/mbta/tid/mbta_app/android/component/HeadsignRowViewTest.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ class HeadsignRowViewTest {
3131
UpcomingFormat.Some.FormattedTrip(
3232
UpcomingTrip(trip { id = "a" }),
3333
RouteType.LIGHT_RAIL,
34-
TripInstantDisplay.Minutes(2),
34+
TripInstantDisplay.Minutes(2, true),
35+
true,
3536
),
3637
UpcomingFormat.Some.FormattedTrip(
3738
UpcomingTrip(trip { id = "b" }),
3839
RouteType.LIGHT_RAIL,
39-
TripInstantDisplay.Minutes(10),
40+
TripInstantDisplay.Minutes(10, true),
41+
true,
4042
),
4143
),
4244
secondaryAlert = null,
@@ -57,7 +59,8 @@ class HeadsignRowViewTest {
5759
UpcomingFormat.Some.FormattedTrip(
5860
UpcomingTrip(trip { id = "a" }),
5961
RouteType.LIGHT_RAIL,
60-
TripInstantDisplay.Boarding,
62+
TripInstantDisplay.Boarding(true),
63+
true,
6164
)
6265
),
6366
secondaryAlert = null,
@@ -77,7 +80,8 @@ class HeadsignRowViewTest {
7780
UpcomingFormat.Some.FormattedTrip(
7881
UpcomingTrip(trip { id = "a" }),
7982
RouteType.LIGHT_RAIL,
80-
TripInstantDisplay.Boarding,
83+
TripInstantDisplay.Boarding(true),
84+
true,
8185
)
8286
),
8387
secondaryAlert = UpcomingFormat.SecondaryAlert("alert-large-green-issue"),

0 commit comments

Comments
 (0)