mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 03:12:31 +00:00
Merge pull request #1946 from PR0M3TH3AN/ai/dead-code-20240123-13702536329573366933
chore(ai): remove dead code (agent)
This commit is contained in:
9 files changed
+13
-89
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { collectVideoTags, formatTagDisplay } from "../../js/utils/videoTags.js";
|
||||
import { collectVideoTags } from "../../js/utils/videoTags.js";
|
||||
|
||||
test("collectVideoTags dedupes across metadata sources and respects casing", () => {
|
||||
const video = {
|
||||
@@ -45,10 +45,3 @@ test("collectVideoTags handles malformed inputs safely", () => {
|
||||
[],
|
||||
);
|
||||
});
|
||||
|
||||
test("formatTagDisplay normalizes leading hashes", () => {
|
||||
assert.equal(formatTagDisplay(" example"), "#example");
|
||||
assert.equal(formatTagDisplay("##Example"), "#Example");
|
||||
assert.equal(formatTagDisplay(""), "");
|
||||
assert.equal(formatTagDisplay(null), "");
|
||||
});
|
||||
Reference in new issue
Block a user