rename newswire and clean wire text
Some checks failed
CI / Validate (pull_request) Failing after 18s
Some checks failed
CI / Validate (pull_request) Failing after 18s
This commit is contained in:
parent
0320533628
commit
38dcf73c44
5 changed files with 79 additions and 31 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue