|
|
|
@ -15,7 +15,7 @@ class JunoOnboardingMapperTest {
|
|
|
|
|
@Test
|
|
|
|
|
fun `GIVEN a default browser page WHEN mapToOnboardingPageState is called THEN creates the expected OnboardingPageState`() {
|
|
|
|
|
val expected = OnboardingPageState(
|
|
|
|
|
image = R.drawable.ic_onboarding_welcome,
|
|
|
|
|
imageRes = R.drawable.ic_onboarding_welcome,
|
|
|
|
|
title = "default browser title",
|
|
|
|
|
description = "default browser body with link text",
|
|
|
|
|
linkTextState = LinkTextState(
|
|
|
|
@ -54,7 +54,7 @@ class JunoOnboardingMapperTest {
|
|
|
|
|
@Test
|
|
|
|
|
fun `GIVEN a sync page WHEN mapToOnboardingPageState is called THEN creates the expected OnboardingPageState`() {
|
|
|
|
|
val expected = OnboardingPageState(
|
|
|
|
|
image = R.drawable.ic_onboarding_sync,
|
|
|
|
|
imageRes = R.drawable.ic_onboarding_sync,
|
|
|
|
|
title = "sync title",
|
|
|
|
|
description = "sync body",
|
|
|
|
|
primaryButton = Action("sync primary button text", unitLambda),
|
|
|
|
@ -88,7 +88,7 @@ class JunoOnboardingMapperTest {
|
|
|
|
|
@Test
|
|
|
|
|
fun `GIVEN a notification page WHEN mapToOnboardingPageState is called THEN creates the expected OnboardingPageState`() {
|
|
|
|
|
val expected = OnboardingPageState(
|
|
|
|
|
image = R.drawable.ic_notification_permission,
|
|
|
|
|
imageRes = R.drawable.ic_notification_permission,
|
|
|
|
|
title = "notification title",
|
|
|
|
|
description = "notification body",
|
|
|
|
|
primaryButton = Action("notification primary button text", unitLambda),
|
|
|
|
|