mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 19:02:28 +00:00
Merge pull request #1837 from PR0M3TH3AN/fix-video-list-view-test-16308731450112989440
Fix VideoListView popular tags unit test failures
This commit is contained in:
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 = [
|
||||
|
||||
Reference in new issue
Block a user