Skip to content

πŸ“ˆ Get real-time stocks from TradingView

[CodeFactor] Apply fixes

codefactor-io521a89090daf
diff --git a/tests/allErrors.test.ts b/tests/allErrors.test.ts
index ea78e85..49f16c2 100644
--- a/tests/allErrors.test.ts
+++ b/tests/allErrors.test.ts
@@ -121,7 +121,7 @@ describe('AllErrors', () => {
const error = await waitForError(chart);
console.log('=> Chart error:', error);
-
+
expect(error).toBeDefined();
expect(error[0]).toBe('Series error:');
expect(error[1]).toMatch(/study_not_auth:BarSetRenko@tv-prostudies-\d+/);
diff --git a/tests/replayMode.test.ts b/tests/replayMode.test.ts
index d00fe28..bd450a6 100644
--- a/tests/replayMode.test.ts
+++ b/tests/replayMode.test.ts
@@ -89,7 +89,6 @@ describe('ReplayMode', () => {
console.log('Play replay mode');
await chart.replayStart(200);
-
chart.onUpdate((p) => {
console.log('Point ->', chart.periods[0].time);
});
diff --git a/tests/utils.ts b/tests/utils.ts
index 45d0793..7348aa2 100644
--- a/tests/utils.ts
+++ b/tests/utils.ts
@@ -9,7 +9,7 @@ export function calculateTimeGap(periods: { time: number }[]) {
if (timeGap < minTimeGap) minTimeGap = timeGap;
}
return minTimeGap;
-};
+}
export default {
wait,