From 56c4b24ae6284ab650044e9a00575e2ac14a5756 Mon Sep 17 00:00:00 2001 From: Don Turner Date: Tue, 2 Dec 2025 16:06:49 +0000 Subject: [PATCH] Update NiaAppStateTest to use new InterestsNavKey The `NiaAppStateTest` is updated to align with the changes in `InterestsNavKey`, which now requires a `topicId` argument. The test now uses `InterestsNavKey(null)` to correctly represent the top-level interests destination. --- .../com/google/samples/apps/nowinandroid/ui/NiaAppStateTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppStateTest.kt b/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppStateTest.kt index ede41fc19..810b77cf0 100644 --- a/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppStateTest.kt +++ b/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppStateTest.kt @@ -117,7 +117,7 @@ class NiaAppStateTest { assertEquals(3, navigationState.topLevelKeys.size) assertEquals( - setOf(ForYouNavKey, BookmarksNavKey, InterestsNavKey), + setOf(ForYouNavKey, BookmarksNavKey, InterestsNavKey(null)), navigationState.topLevelKeys, ) }