Skip to content

Commit

Permalink
test: Unify GUI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Distractic committed Dec 19, 2023
1 parent cd35b89 commit a174f79
Show file tree
Hide file tree
Showing 5 changed files with 410 additions and 919 deletions.
2 changes: 2 additions & 0 deletions src/test/kotlin/com/github/rushyverse/api/AbstractKoinTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.github.rushyverse.api.koin.loadModule
import com.github.rushyverse.api.utils.randomString
import io.mockk.every
import io.mockk.mockk
import io.mockk.unmockkAll
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import org.bukkit.Server
Expand Down Expand Up @@ -47,6 +48,7 @@ open class AbstractKoinTest {
open fun onAfter() {
CraftContext.stopKoin(pluginId)
CraftContext.stopKoin(APIPlugin.ID_API)
unmockkAll()
}

fun loadTestModule(moduleDeclaration: ModuleDeclaration): Module =
Expand Down
Loading

0 comments on commit a174f79

Please sign in to comment.