diff --git a/src/shared/RequestError.ts b/src/shared/RequestError.ts index 8f4e663..fb53a11 100644 --- a/src/shared/RequestError.ts +++ b/src/shared/RequestError.ts @@ -19,6 +19,6 @@ export class RequestError extends Error { } get [Symbol.toStringTag]() { - return 'RequestError' + return 'Error' } } diff --git a/src/shared/__tests__/RequestError.test.ts b/src/shared/__tests__/RequestError.test.ts index 7234600..3d8c3dd 100644 --- a/src/shared/__tests__/RequestError.test.ts +++ b/src/shared/__tests__/RequestError.test.ts @@ -6,6 +6,6 @@ describe('RequestError specs', () => { it('should return [object RequestError] when called with Object.prototype.toString', () => { expect( Object.prototype.toString.call(new RequestError('test', toAny({}))) - ).toBe('[object RequestError]') + ).toBe('[object Error]') }) })