diff options
author | Allan Wang <me@allanwang.ca> | 2021-04-18 17:58:23 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-04-18 17:58:23 -0700 |
commit | 41b6765da8fb0c05dff8b339ca23b6a3d39839d9 (patch) | |
tree | 4b51d7fc8cb476619a337f1b308c5540ec3f365d /app/src/androidTest/kotlin/com/pitchedapps/frost/TestModules.kt | |
parent | 6abaf596e4db5a36057f6a8acf31b72f57a12e18 (diff) | |
download | frost-41b6765da8fb0c05dff8b339ca23b6a3d39839d9.tar.gz frost-41b6765da8fb0c05dff8b339ca23b6a3d39839d9.tar.bz2 frost-41b6765da8fb0c05dff8b339ca23b6a3d39839d9.zip |
Fix coroutine tests
Diffstat (limited to 'app/src/androidTest/kotlin/com/pitchedapps/frost/TestModules.kt')
-rw-r--r-- | app/src/androidTest/kotlin/com/pitchedapps/frost/TestModules.kt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/src/androidTest/kotlin/com/pitchedapps/frost/TestModules.kt b/app/src/androidTest/kotlin/com/pitchedapps/frost/TestModules.kt new file mode 100644 index 00000000..3d43f1b1 --- /dev/null +++ b/app/src/androidTest/kotlin/com/pitchedapps/frost/TestModules.kt @@ -0,0 +1,19 @@ +package com.pitchedapps.frost + +import ca.allanwang.kau.kpref.KPrefFactory +import ca.allanwang.kau.kpref.KPrefFactoryInMemory +import com.pitchedapps.frost.prefs.PrefFactoryModule +import dagger.Module +import dagger.Provides +import dagger.hilt.components.SingletonComponent +import dagger.hilt.testing.TestInstallIn + +@Module +@TestInstallIn( + components = [SingletonComponent::class], + replaces = [PrefFactoryModule::class] +) +object PrefFactoryTestModule { + @Provides + fun factory(): KPrefFactory = KPrefFactoryInMemory +} |