Make Trader parsing of executionPlan more robust (extract maxLossPercent/method fallbacks); ensure TradingViewChart test mock includes timeScale
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user