File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
androidAndroidTest/kotlin/dev/gitlive/firebase/auth
commonTest/kotlin/dev/gitlive/firebase/auth
iosTest/kotlin/dev/gitlive/firebase/auth
jsTest/kotlin/dev/gitlive/firebase/auth Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ actual val emulatorHost: String = "10.0.2.2"
13
13
14
14
actual val context: Any = InstrumentationRegistry .getInstrumentation().targetContext
15
15
16
- actual val currentPlatform: TargetPlatform = TargetPlatform .Android
16
+ actual val currentPlatform: Platform = Platform .Android
17
17
18
18
actual fun runTest (skip : Boolean , test : suspend () -> Unit ) = runBlocking {
19
19
if (skip) {
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import kotlin.test.*
11
11
expect val emulatorHost: String
12
12
expect val context: Any
13
13
expect fun runTest (skip : Boolean = false, test : suspend () -> Unit )
14
- expect val currentPlatform: TargetPlatform
14
+ expect val currentPlatform: Platform
15
15
16
- enum class TargetPlatform { Android , IOS , JS }
16
+ enum class Platform { Android , IOS , JS }
17
17
18
18
class FirebaseAuthTest {
19
19
20
20
// Skip the tests on iOS simulator due keychain exceptions
21
- private val skip = currentPlatform == TargetPlatform .IOS
21
+ private val skip = currentPlatform == Platform .IOS
22
22
23
23
@BeforeTest
24
24
fun initializeFirebase () {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ actual val emulatorHost: String = "localhost"
11
11
12
12
actual val context: Any = Unit
13
13
14
- actual val currentPlatform: TargetPlatform = TargetPlatform .IOS
14
+ actual val currentPlatform: Platform = Platform .IOS
15
15
16
16
actual fun runTest (skip : Boolean , test : suspend () -> Unit ) = runBlocking {
17
17
if (skip) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ actual val emulatorHost: String = "localhost"
11
11
12
12
actual val context: Any = Unit
13
13
14
- actual val currentPlatform: TargetPlatform = TargetPlatform .JS
14
+ actual val currentPlatform: Platform = Platform .JS
15
15
16
16
actual fun runTest (skip : Boolean , test : suspend () -> Unit ) = GlobalScope
17
17
.promise {
You can’t perform that action at this time.
0 commit comments