Bug 1907446 - update topic selection for onboarding r=home-newtab-reviewers,thecount
Differential Revision: https://phabricator.services.mozilla.com/D217769
This commit is contained in:
@@ -3382,6 +3382,16 @@ describe("DiscoveryStreamFeed", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("#onAction: TOPIC_SELECTION_MAYBE_LATER", () => {
|
||||
it("should call topicSelectionMaybeLaterEvent", async () => {
|
||||
sandbox.stub(feed, "topicSelectionMaybeLaterEvent").resolves();
|
||||
await feed.onAction({
|
||||
type: at.TOPIC_SELECTION_MAYBE_LATER,
|
||||
});
|
||||
assert.calledOnce(feed.topicSelectionMaybeLaterEvent);
|
||||
});
|
||||
});
|
||||
|
||||
describe("#observe", () => {
|
||||
it("should call configReset on Pocket button pref change", async () => {
|
||||
sandbox.stub(feed, "configReset").returns();
|
||||
|
||||
Reference in New Issue
Block a user