1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 package org.mozilla.fenix.gleanplumb
9 import kotlinx.coroutines.ExperimentalCoroutinesApi
10 import mozilla.components.support.test.rule.MainCoroutineRule
13 import org.mozilla.fenix.components.AppStore
14 import org.mozilla.fenix.components.appstate.AppAction.MessagingAction
15 import org.mozilla.fenix.nimbus.MessageSurfaceId
17 class MessagingFeatureTest {
18 @OptIn(ExperimentalCoroutinesApi::class)
20 val coroutinesTestRule = MainCoroutineRule()
23 fun `WHEN start is called THEN evaluate messages`() {
24 val appStore: AppStore = spyk(AppStore())
25 val binding = MessagingFeature(appStore)
29 verify { appStore.dispatch(MessagingAction.Evaluate(MessageSurfaceId.HOMESCREEN)) }