Migrate terminal to smart-money profiles
This commit is contained in:
parent
86661df7ae
commit
de6d25f046
4 changed files with 452 additions and 75 deletions
|
|
@ -19,6 +19,8 @@ import {
|
|||
shouldRetainLiveSnapshotHistory,
|
||||
shouldShowEquitiesSilentFeedWarning,
|
||||
selectPrimaryClassifierHit,
|
||||
smartMoneyProfileLabel,
|
||||
smartMoneyToneForProfile,
|
||||
statusLabel,
|
||||
toggleFilterValue
|
||||
} from "./terminal";
|
||||
|
|
@ -318,6 +320,15 @@ describe("classifier row decoration helpers", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("smart-money profile helpers", () => {
|
||||
it("labels and colors primary profiles", () => {
|
||||
expect(smartMoneyProfileLabel("institutional_directional")).toBe("Institutional Directional");
|
||||
expect(smartMoneyProfileLabel(null)).toBe("Abstained");
|
||||
expect(smartMoneyToneForProfile("event_driven")).toBe("blue");
|
||||
expect(smartMoneyToneForProfile(null)).toBe("neutral");
|
||||
});
|
||||
});
|
||||
|
||||
describe("flow filter popup helpers", () => {
|
||||
it("opens and closes the popup via toggle and dismiss actions", () => {
|
||||
expect(nextFlowFilterPopoverState(false, "toggle")).toBe(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue