mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] Fixup tests
This commit is contained in:
parent
bab0149d64
commit
7db1b80fb3
@ -123,6 +123,7 @@ class StudiesAdapterTest {
|
|||||||
val study = mockk<EnrolledExperiment>()
|
val study = mockk<EnrolledExperiment>()
|
||||||
|
|
||||||
every { study.slug } returns "slug"
|
every { study.slug } returns "slug"
|
||||||
|
every { study.featureIds } returns listOf()
|
||||||
|
|
||||||
adapter = spyk(StudiesAdapter(delegate, listOf(study), false))
|
adapter = spyk(StudiesAdapter(delegate, listOf(study), false))
|
||||||
|
|
||||||
@ -137,8 +138,10 @@ class StudiesAdapterTest {
|
|||||||
fun `WHEN calling createListWithSections THEN returns the section + experiments, filtering messages`() {
|
fun `WHEN calling createListWithSections THEN returns the section + experiments, filtering messages`() {
|
||||||
val study = mockk<EnrolledExperiment>()
|
val study = mockk<EnrolledExperiment>()
|
||||||
every { study.slug } returns "slug"
|
every { study.slug } returns "slug"
|
||||||
|
every { study.featureIds } returns listOf("dummy")
|
||||||
|
|
||||||
val message = mockk<EnrolledExperiment>()
|
val message = mockk<EnrolledExperiment>()
|
||||||
|
every { message.slug } returns "aMessage"
|
||||||
every { message.featureIds } returns listOf(MESSAGING_FEATURE_ID)
|
every { message.featureIds } returns listOf(MESSAGING_FEATURE_ID)
|
||||||
|
|
||||||
adapter = spyk(StudiesAdapter(delegate, listOf(study, message), false))
|
adapter = spyk(StudiesAdapter(delegate, listOf(study, message), false))
|
||||||
|
Loading…
Reference in New Issue
Block a user