Skip to content

Commit

Permalink
fix: epic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mai-LinhC committed May 3, 2024
1 parent 964fcc0 commit c259d5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/androidTest/java/com/github/se/assocify/Epic1Test.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import com.github.se.assocify.model.database.EventAPI
import com.github.se.assocify.model.database.TaskAPI
import com.github.se.assocify.model.database.UserAPI
import com.github.se.assocify.model.entities.Association
import com.github.se.assocify.model.entities.PermissionRole
import com.github.se.assocify.model.entities.RoleType
import com.github.se.assocify.model.entities.User
import com.github.se.assocify.model.localsave.LoginSave
import com.github.se.assocify.navigation.Destination
Expand Down Expand Up @@ -112,6 +114,12 @@ class Epic1Test : TestCase(kaspressoBuilder = Kaspresso.Builder.withComposeSuppo
val onSuccessCallback = firstArg<(List<Association>) -> Unit>()
onSuccessCallback.invoke(listOf(asso))
}

every { getCurrentUserRole(any(), any()) } answers
{
val onSuccessCallback = firstArg<(PermissionRole) -> Unit>()
onSuccessCallback.invoke(PermissionRole("1", "aaa", RoleType.PRESIDENCY))
}
}

private val eventAPI = mockk<EventAPI>() { every { getEvents(any(), any()) } answers {} }
Expand Down

0 comments on commit c259d5b

Please sign in to comment.