diff --git a/packages/sdk/src/ConnectorClient.ts b/packages/sdk/src/ConnectorClient.ts index 472f93e2..79f0c8a5 100644 --- a/packages/sdk/src/ConnectorClient.ts +++ b/packages/sdk/src/ConnectorClient.ts @@ -33,7 +33,7 @@ export class ConnectorClient { const axiosInstance = axios.create({ baseURL: config.baseUrl, headers: { - "X-API-KEY": config.apiKey // eslint-disable-line @typescript-eslint/naming-convention + "X-API-KEY": config.apiKey }, httpAgent: config.httpAgent, httpsAgent: config.httpsAgent, diff --git a/src/modules/webhooks/WebhooksModule.ts b/src/modules/webhooks/WebhooksModule.ts index 0c16194a..dba33829 100644 --- a/src/modules/webhooks/WebhooksModule.ts +++ b/src/modules/webhooks/WebhooksModule.ts @@ -49,7 +49,6 @@ export default class WebhooksModule extends ConnectorRuntimeModule { }, peer: account2Address }, - // eslint-disable-next-line @typescript-eslint/naming-convention { headers: { "x-correlation-id": customCorrelationId } } ); - await connectorClient1._eventBus?.waitForEvent("consumption.outgoingRequestCreated", (event: any) => { - return event.headers["x-correlation-id"] === customCorrelationId; - }); + await connectorClient1._eventBus?.waitForEvent("consumption.outgoingRequestCreated", (event: any) => event.headers["x-correlation-id"] === customCorrelationId); }); }); diff --git a/test/errors.test.ts b/test/errors.test.ts index c73ea5b2..73532e97 100644 --- a/test/errors.test.ts +++ b/test/errors.test.ts @@ -11,7 +11,6 @@ beforeAll(async () => { axiosClient = axios.create({ baseURL: baseUrl, validateStatus: (_) => true, - // eslint-disable-next-line @typescript-eslint/naming-convention headers: { "X-API-KEY": launcher.apiKey } }); }, getTimeout(30000)); @@ -20,10 +19,7 @@ afterAll(() => launcher.stop()); describe("Errors", () => { test("http error 401", async () => { - const response = await axiosClient.get("/api/v2/Files", { - // eslint-disable-next-line @typescript-eslint/naming-convention - headers: { "X-API-KEY": "invalid" } - }); + const response = await axiosClient.get("/api/v2/Files", { headers: { "X-API-KEY": "invalid" } }); expect(response.status).toBe(401); validateSchema(ValidationSchema.Error, response.data.error); });