MCPcopy Index your code
hub / github.com/Mathieu2301/TradingView-API / waitForError

Function waitForError

tests/allErrors.test.ts:8–11  ·  view source on GitHub ↗
(instance: any, next = () => {})

Source from the content-addressed store, hash-verified

6
7describe('AllErrors', () => {
8 const waitForError = (instance: any, next = () => {}) => new Promise<string[]>((resolve) => {
9 instance.onError((...error: string[]) => resolve(error));
10 next();
11 });
12
13 it.skip('throws an error when an invalid token is set', async () => {
14 console.log('Testing "Credentials error" error:');

Callers 1

allErrors.test.tsFile · 0.85

Calls 1

onErrorMethod · 0.45

Tested by

no test coverage detected