Skip to content

Commit 2a1babd

Browse files
committed
Minor formatting change, not sure why.
1 parent 1c2ce7b commit 2a1babd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

jvm/example-junit5/src/test/java/com/example/LoginFlowTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public class LoginFlowTest {
1717
public void loginFlow(Jooby app) {
1818
expectSelfie(get("/")).toMatchDisk("1. not logged in").facet("md").toBe("Please login");
1919
expectSelfie(given().param("email", "[email protected]").post("/login")).toMatchDisk("2. post login form")
20-
.facet("md").toBe("""
20+
.facet("md").toBe(
21+
"""
2122
Email sent!
2223
2324
Check your email for your login link.""");
@@ -27,15 +28,17 @@ public void loginFlow(Jooby app) {
2728
.facet("md").toBe("Click [here](https://www.example.com/login-confirm/erjchFY=) to login.");
2829

2930
expectSelfie(get("/login-confirm/erjchFY=")).toMatchDisk("4. open login email link")
30-
.facets("", "cookies").toBe("""
31+
.facets("", "cookies").toBe(
32+
"""
3133
REDIRECT 302 Found to /
3234
╔═ [cookies] ═╗
3335
[email protected]|JclThw==;Path=/""");
3436
expectSelfie(given().cookie("login", "[email protected]|JclThw==").get("/")).toMatchDisk("5. should be logged in")
3537
.facet("md").toBe("Welcome back [email protected]");
3638

3739
expectSelfie(given().cookie("login", "[email protected]|badsignature").get("/")).toMatchDisk("6. bad signature should fail")
38-
.facets("md").toBe("""
40+
.facets("md").toBe(
41+
"""
3942
Unauthorized
4043
4144
status code: 401""");

jvm/undertest-junit5-kotest/src/test/kotlin/undertest/junit5/UT_Memoize.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class UT_Memoize :
1818
}
1919
test("kotlinx.serialization.Serializable") {
2020
cacheSelfieJson { Book("Cat in the Hat", "Dr. Seuss") }
21-
.toBe("""{
21+
.toBe(
22+
"""{
2223
${' '} "title": "Cat in the Hat",
2324
${' '} "author": "Dr. Seuss"
2425
}""")

0 commit comments

Comments
 (0)