Skip to content

Commit 0d00194

Browse files
committed
Update bullet points.
1 parent 0330ede commit 0d00194

File tree

2 files changed

+7
-8
lines changed
  • jvm
    • selfie-lib/src/commonMain/kotlin/com/diffplug/selfie
    • selfie-runner-junit5/src/test/kotlin/com/diffplug/selfie/junit5

2 files changed

+7
-8
lines changed

jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/Mode.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ enum class Mode {
6262
private fun msg(headline: String) =
6363
when (this) {
6464
interactive ->
65-
"$headline\n" + (if (headline.any { it == '\n' }) "────────────────────\n" else "") +
66-
"- update this snapshot by adding `_TODO` to the function name\n" +
67-
"- update all snapshots in this file by adding `//selfieonce` or `//SELFIEWRITE`"
65+
"$headline\n" +
66+
" update this snapshot by adding `_TODO` to the function name\n" +
67+
" update all snapshots in this file by adding `//selfieonce` or `//SELFIEWRITE`"
6868
readonly -> headline
6969
overwrite -> "$headline\n(didn't expect this to ever happen in overwrite mode)"
7070
}

jvm/selfie-runner-junit5/src/test/kotlin/com/diffplug/selfie/junit5/InteractiveTest.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ class InteractiveTest : HarnessJUnit() {
4040
"""Snapshot mismatch at L1:C1
4141
-10
4242
+5
43-
────────────────────
44-
- update this snapshot by adding `_TODO` to the function name
45-
- update all snapshots in this file by adding `//selfieonce` or `//SELFIEWRITE`"""
43+
‣ update this snapshot by adding `_TODO` to the function name
44+
‣ update all snapshots in this file by adding `//selfieonce` or `//SELFIEWRITE`"""
4645
}
4746

4847
@Test @Order(3)
@@ -75,8 +74,8 @@ class InteractiveTest : HarnessJUnit() {
7574
ut_mirrorKt().lineWith("expectSelfie(").setContent(" expectSelfie(\"5\").toMatchDisk()")
7675
gradleInteractiveFail().message shouldBe
7776
"Snapshot not found\n" +
78-
"- update this snapshot by adding `_TODO` to the function name\n" +
79-
"- update all snapshots in this file by adding `//selfieonce` or `//SELFIEWRITE`"
77+
" update this snapshot by adding `_TODO` to the function name\n" +
78+
" update all snapshots in this file by adding `//selfieonce` or `//SELFIEWRITE`"
8079
}
8180

8281
@Test @Order(7)

0 commit comments

Comments
 (0)