Skip to content

Commit

Permalink
test wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-li committed Jan 14, 2025
1 parent 99c2020 commit 44f7f9b
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.onesignal.internal

import android.content.Context
import androidx.test.core.app.ApplicationProvider
// import com.onesignal.notifications.NotificationsModule
import com.onesignal.debug.LogLevel
import com.onesignal.debug.internal.logging.Logging
import io.kotest.assertions.throwables.shouldThrowUnit
Expand Down Expand Up @@ -86,4 +89,22 @@ class OneSignalImpTests : FunSpec({
}
}
}

context("initWithContext") {
context("called without appId") {
test("has cached legacy appId should initialize") {
val os = OneSignalImp()
val context = ApplicationProvider.getApplicationContext<Context>()

os.initWithContext(context, null)


}
test("does not have cached legacy appId should return early") {
// Given
// When
// Then
}
}
}
})

0 comments on commit 44f7f9b

Please sign in to comment.