diff --git a/test/lib/runtime.test.ts b/test/lib/runtime.test.ts index 495647212..0977d8517 100644 --- a/test/lib/runtime.test.ts +++ b/test/lib/runtime.test.ts @@ -837,3 +837,11 @@ describe('Runtime for UserInfoClient', () => { expect(request.isDone()).toBe(true); }); }); + +describe('test baseAPI', () => { + // following error is thrown: throw new Error('The provided base URL is invalid'); + // add expect statement for this error below + expect( + () => new BaseAPI({ baseUrl: {} as any, parseError: () => Promise.resolve(new Error('tmp')) }) + ).toThrowError('The provided base URL is invalid'); +});