rename newswire and clean wire text
Some checks failed
CI / Validate (pull_request) Failing after 18s

This commit is contained in:
dirtydishes 2026-06-13 10:38:08 -04:00
parent 0320533628
commit 38dcf73c44
5 changed files with 79 additions and 31 deletions

View file

@ -41,6 +41,7 @@ const {
composeTapeItems,
deriveAlertDirection,
countActiveFlowFilterGroups,
decodeNewsText,
filterOptionTapeItems,
findAnchorRestoreIndex,
formatCompactUsd,
@ -562,6 +563,20 @@ describe("fixed tape virtualization config", () => {
});
});
describe("news text formatting", () => {
it("decodes common html entities in provider text", () => {
expect(
decodeNewsText(
"Palantir CEO Alex Karp Is 'Rooting For Elon' & Clients 'Screaming'"
)
).toBe("Palantir CEO Alex Karp Is 'Rooting For Elon' & Clients 'Screaming'");
});
it("leaves unknown entities untouched", () => {
expect(decodeNewsText("Keep &market; literal")).toBe("Keep &market; literal");
});
});
describe("dark underlying route dependency helper", () => {
it("does not keep extra equities subscriptions when joins+trace fallback are sufficient", () => {
expect(shouldIncludeEquitiesForDarkUnderlyingFallback()).toBe(false);