This commit is contained in:
2021-01-14 22:53:48 +01:00
parent 91ab800272
commit caadc2a969
29 changed files with 50 additions and 56 deletions

View File

@@ -134,7 +134,7 @@ class ArticleVoterTest {
}
@Test
fun `can update article if yours`(): Unit {
fun `can update article if yours`() {
val article = getArticle(tesla)
ArticleVoter(getRepo(article))
.canUpsert(article, tesla)
@@ -142,7 +142,7 @@ class ArticleVoterTest {
}
@Test
fun `can not update article if not yours`(): Unit {
fun `can not update article if not yours`() {
val article = getArticle(tesla)
ArticleVoter(getRepo(article))
.canUpsert(article, einstein)

View File

@@ -125,7 +125,7 @@ internal class CommentVoterTest {
}
@Test
fun `can be view the comment`(): Unit {
fun `can be view the comment`() {
listOf(CommentVoter()).run {
mockk<ApplicationCall> {
every { citizenOrNull } returns tesla

View File

@@ -168,7 +168,7 @@ internal class VoteVoterTest {
}
@Test
fun `can be vote an article`(): Unit {
fun `can be vote an article`() {
listOf(VoteVoter()).run {
mockk<ApplicationCall> {
every { citizenOrNull } returns tesla