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:
Nathan Barrett
2024-07-30 13:44:08 +00:00
parent e2169f957d
commit a80ed35bb1
10 changed files with 344 additions and 64 deletions

View File

@@ -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();