Skip to content

Commit 3944400

Browse files
committed
Refactor README code
1 parent a67af00 commit 3944400

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ You can call `describeBehaviors` to create a list of `DescribedBehavior` objects
2121

2222
```kotlin
2323
@RunWith(ParameterizedRobolectricTestRunner::class)
24+
// You don't need to use @HiltAndroidTest if you don't use Hilt
2425
@HiltAndroidTest
2526
class ArticleListScreenTest(private val behavior: DescribedBehavior<ArticleListScreenRobot>) {
2627

27-
// ArticleListScreenRobot is a utility class that provides functions to interact with the screen
28+
// ArticleListScreenRobot is a utility class
29+
// that provides functions to interact with the screen
2830
@Inject
2931
lateinit var articleListScreenRobot: ArticleListScreenRobot
3032

3133
@Test
3234
fun test() {
33-
runRobot(articleListScreenRobot) {
35+
runTest {
3436
behavior.execute(articleListScreenRobot)
3537
}
3638
}

0 commit comments

Comments
 (0)