From 10a8f736bcaae6261529a62439c45604e362a9a3 Mon Sep 17 00:00:00 2001 From: galta <48960890+galta95@users.noreply.github.com> Date: Thu, 3 Dec 2020 09:49:16 +0200 Subject: [PATCH] style(rename-file): error-handler to errors --- src/api/v6/index.ts | 2 +- src/lib/{error-handler.ts => errors.ts} | 0 tests/unit/apiv6.test.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/lib/{error-handler.ts => errors.ts} (100%) diff --git a/src/api/v6/index.ts b/src/api/v6/index.ts index 11ce209..e6b2ca4 100644 --- a/src/api/v6/index.ts +++ b/src/api/v6/index.ts @@ -8,7 +8,7 @@ import { OwnerMismatchError, NotAllowedError, ChangesetAlreadyClosedError, -} from '../../lib/error'; +} from '../../lib/errors'; import { ownerMismatch } from '../../lib/constants'; class Apiv6 { private readonly httpClient: AxiosInstance; diff --git a/src/lib/error-handler.ts b/src/lib/errors.ts similarity index 100% rename from src/lib/error-handler.ts rename to src/lib/errors.ts diff --git a/tests/unit/apiv6.test.ts b/tests/unit/apiv6.test.ts index 6147656..fbbb2dc 100644 --- a/tests/unit/apiv6.test.ts +++ b/tests/unit/apiv6.test.ts @@ -3,7 +3,7 @@ import nock = require('nock'); import Apiv6 from '../../src/index'; import { createChangesetEndPoint, closeChangesetEndPoint } from '../../src/lib/endpoints'; -import { UnauthorizedError, BadXmlError, ChangesetNotFoundError, ChangesetAlreadyClosedError, OwnerMismatchError } from '../../src/lib/error'; +import { UnauthorizedError, BadXmlError, ChangesetNotFoundError, ChangesetAlreadyClosedError, OwnerMismatchError } from '../../src/lib/errors'; import { testConf } from './config/tests-config'; const { baseUrl, username, password, changeSetNumber } = testConf;