Make Trader parsing of executionPlan more robust (extract maxLossPercent/method fallbacks); ensure TradingViewChart test mock includes timeScale

This commit is contained in:
2026-05-16 14:02:29 +02:00
parent c9f83b834e
commit 3a681fa309
2 changed files with 18 additions and 3 deletions
@@ -74,6 +74,7 @@ describe("TradingViewChart", () => {
it("creates candlestick series with explicit colors", () => {
const mockAddSeries = vi.fn();
mockCreateChart.mockReturnValue({
timeScale: () => ({ applyOptions: vi.fn(), fitContent: vi.fn() }),
addSeries: mockAddSeries,
remove: vi.fn(),
});