Skip to content

Commit

Permalink
Use appendValue instead of appendText where appropriate, so quoting i…
Browse files Browse the repository at this point in the history
…s used
  • Loading branch information
angusholder committed May 23, 2022
1 parent 9ff6c5c commit 3ef9719
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object BaristaAssistiveTextAssertions {
private fun matchAssistiveText(expectedAssistiveText: String): Matcher<View> {
return object : TypeSafeMatcher<View>() {
override fun describeTo(description: Description) {
description.appendText("with helper text: ").appendText(expectedAssistiveText)
description.appendText("with helper text: ").appendValue(expectedAssistiveText)
}

override fun matchesSafely(item: View): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object BaristaContentDescriptionAssertions {
private fun matchContentDescription(expectedContentDescription: String): Matcher<View> {
return object : TypeSafeMatcher<View>() {
override fun describeTo(description: Description) {
description.appendText("with content description: ").appendText(expectedContentDescription)
description.appendText("with content description: ").appendValue(expectedContentDescription)
}

override fun matchesSafely(item: View): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object BaristaErrorAssertions {
private fun matchError(expectedError: String): Matcher<View> {
return object : TypeSafeMatcher<View>() {
override fun describeTo(description: Description) {
description.appendText("with error: ").appendText(expectedError)
description.appendText("with error: ").appendValue(expectedError)
}

override fun describeMismatchSafely(item: View, mismatchDescription: Description) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object BaristaHintAssertions {
private fun matchHint(expectedHint: String): Matcher<View> {
return object : TypeSafeMatcher<View>() {
override fun describeTo(description: Description) {
description.appendText("with hint: ").appendText(expectedHint)
description.appendText("with hint: ").appendValue(expectedHint)
}

override fun matchesSafely(item: View): Boolean {
Expand Down

0 comments on commit 3ef9719

Please sign in to comment.