Skip to content

πŸ“ˆ Get real-time stocks from TradingView

Relax Supertrend description case assertion

copilot-swe-agent[bot]82c4ff195c34
diff --git a/tests/indicators.test.ts b/tests/indicators.test.ts
index d835a03..ec1d575 100644
--- a/tests/indicators.test.ts
+++ b/tests/indicators.test.ts
@@ -10,7 +10,7 @@ describe('Indicators', () => {
it('gets Supertrend strategy', async () => {
indicators.SuperTrend = await TradingView.getIndicator('STD;Supertrend%Strategy');
expect(indicators.SuperTrend).toBeDefined();
- expect(indicators.SuperTrend.description).toBe('Supertrend Strategy');
+ expect(indicators.SuperTrend.description).toMatch(/^Supertrend strategy$/i);
indicators.SuperTrend.setOption('commission_type', 'percent');
indicators.SuperTrend.setOption('commission_value', 0);