2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00

Migrate test code to no longer use Nimbus FeatureConfig

This commit is contained in:
Christian Sadilek 2021-05-27 15:41:29 -04:00
parent 9d1e51dfff
commit 965a211fc3

View File

@ -11,7 +11,6 @@ import mozilla.components.support.test.mock
import org.junit.Before
import org.junit.Test
import org.mozilla.experiments.nimbus.Branch
import org.mozilla.experiments.nimbus.FeatureConfig
import org.mozilla.fenix.nimbus.controller.NimbusBranchesController
class NimbusBranchesControllerTest {
@ -32,11 +31,7 @@ class NimbusBranchesControllerTest {
fun `WHEN branch item is clicked THEN branch is opted into and selectedBranch state is updated`() {
val branch = Branch(
slug = "slug",
ratio = 1,
feature = FeatureConfig(
featureId = "1",
enabled = true
)
ratio = 1
)
controller.onBranchItemClicked(branch)