Merge pull request #1837 from PR0M3TH3AN/fix-video-list-view-test-16308731450112989440

Fix VideoListView popular tags unit test failures
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-27 14:53:54 -05:00
commit 5db84aaf96
1 file changed
+2 -2
@@ -76,7 +76,7 @@ test("VideoListView renders sorted popular tag pills", () => {
assert.equal(buttons.length, 3);
assert.deepEqual(
Array.from(buttons, (button) => button.dataset.tag),
["Nostr", "Video", "Learning"],
["#Nostr", "#Video", "#Learning"],
);
});
@@ -90,7 +90,7 @@ test("VideoListView applies tag preference variants to popular tags", () => {
view.mount(listRoot);
view.setPopularTagsContainer(tagsRoot);
view.setTagPreferenceStateResolver((tag) =>
tag === "Nostr" ? "interest" : tag === "Video" ? "disinterest" : "neutral",
tag === "#Nostr" ? "interest" : tag === "#Video" ? "disinterest" : "neutral",
);
const videos = [