2
0
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:
James Hugman 2022-05-18 18:41:19 +01:00 committed by mergify[bot]
parent bab0149d64
commit 7db1b80fb3

View File

@ -123,6 +123,7 @@ class StudiesAdapterTest {
val study = mockk<EnrolledExperiment>()
every { study.slug } returns "slug"
every { study.featureIds } returns listOf()
adapter = spyk(StudiesAdapter(delegate, listOf(study), false))
@ -137,8 +138,10 @@ class StudiesAdapterTest {
fun `WHEN calling createListWithSections THEN returns the section + experiments, filtering messages`() {
val study = mockk<EnrolledExperiment>()
every { study.slug } returns "slug"
every { study.featureIds } returns listOf("dummy")
val message = mockk<EnrolledExperiment>()
every { message.slug } returns "aMessage"
every { message.featureIds } returns listOf(MESSAGING_FEATURE_ID)
adapter = spyk(StudiesAdapter(delegate, listOf(study, message), false))