klint
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user