Update `var` with fake default value to the more "correct" `lateinit var`

pull/902/head
Simon Marquis 1 year ago
parent f1bc6f1226
commit 4a5ec5bd82

@ -34,7 +34,7 @@ class NewsResourceCardTest {
@Test @Test
fun testMetaDataDisplay_withCodelabResource() { fun testMetaDataDisplay_withCodelabResource() {
val newsWithKnownResourceType = userNewsResourcesTestData[0] val newsWithKnownResourceType = userNewsResourcesTestData[0]
var dateFormatted = "" lateinit var dateFormatted: String
composeTestRule.setContent { composeTestRule.setContent {
NewsResourceCardExpanded( NewsResourceCardExpanded(
@ -63,7 +63,7 @@ class NewsResourceCardTest {
@Test @Test
fun testMetaDataDisplay_withEmptyResourceType() { fun testMetaDataDisplay_withEmptyResourceType() {
val newsWithEmptyResourceType = userNewsResourcesTestData[3] val newsWithEmptyResourceType = userNewsResourcesTestData[3]
var dateFormatted = "" lateinit var dateFormatted: String
composeTestRule.setContent { composeTestRule.setContent {
NewsResourceCardExpanded( NewsResourceCardExpanded(

Loading…
Cancel
Save