File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
selfie-lib/src/commonMain/kotlin/com/diffplug/selfie
selfie-runner-junit5/src/test/kotlin/com/diffplug/selfie/junit5 Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ enum class Mode {
62
62
private fun msg (headline : String ) =
63
63
when (this ) {
64
64
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`"
68
68
readonly -> headline
69
69
overwrite -> " $headline \n (didn't expect this to ever happen in overwrite mode)"
70
70
}
Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ class InteractiveTest : HarnessJUnit() {
40
40
""" Snapshot mismatch at L1:C1
41
41
-10
42
42
+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`"""
46
45
}
47
46
48
47
@Test @Order(3 )
@@ -75,8 +74,8 @@ class InteractiveTest : HarnessJUnit() {
75
74
ut_mirrorKt().lineWith(" expectSelfie(" ).setContent(" expectSelfie(\" 5\" ).toMatchDisk()" )
76
75
gradleInteractiveFail().message shouldBe
77
76
" 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`"
80
79
}
81
80
82
81
@Test @Order(7 )
You can’t perform that action at this time.
0 commit comments