Skip to content

Commit

Permalink
Merge 1f93c00 into 6b04145
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanenicolas committed Dec 22, 2019
2 parents 6b04145 + 1f93c00 commit 27cf6d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -22,3 +22,4 @@ classes/
.idea/
build/
.gradle
android-studio.*
6 changes: 6 additions & 0 deletions ktp/src/main/kotlin/toothpick/ktp/KTP.kt
Expand Up @@ -54,4 +54,10 @@ object KTP {
fun isScopeOpen(name: Any) = Toothpick.isScopeOpen(name)

fun setConfiguration(configuration: Configuration) = Toothpick.setConfiguration(configuration)

fun reset() = Toothpick.reset()

fun reset(scope: Scope) = Toothpick.reset(scope)

fun release(scope: Scope) = Toothpick.release(scope)
}
2 changes: 1 addition & 1 deletion ktp/src/test/kotlin/toothpick/ktp/KTPTest.kt
Expand Up @@ -34,7 +34,7 @@ class KTPTest {

@AfterEach
fun tearDown() {
Toothpick.reset()
KTP.reset()
}

@Test
Expand Down

0 comments on commit 27cf6d8

Please sign in to comment.