Skip to content

Commit

Permalink
Add test for aliases and easter eggs
Browse files Browse the repository at this point in the history
  • Loading branch information
x86-39 committed Dec 1, 2023
1 parent 5b179c9 commit d38ca26
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/test/kotlin/is/tonetag/ToneTagResourceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,24 @@ class ToneTagResourceTest {
.`when`().get("/j/en_gb")
.then()
.statusCode(200)
.body(containsString("This tone indicator shows that the text or post is a joke and not meant to be taken seriously."))
.body(containsString("This tone indicator shows that the text is a joke and not meant to be taken seriously."))
}

@Test
fun testAliasedJokingEnGBEndpoint() {
given()
.`when`().get("/jk/en_gb")
.then()
.statusCode(200)
.body(containsString("This tone indicator shows that the text is a joke and not meant to be taken seriously."))
}
@Test
fun testEasterEggEnGBEndpoint() {
given()
.`when`().get("/silly/en_gb")
.then()
.statusCode(200)
.body(containsString("SLASH SILLY!!???!!!"))
}

}

0 comments on commit d38ca26

Please sign in to comment.