From 652fad2e3fc3e244bb720a2e06aee6054e50c088 Mon Sep 17 00:00:00 2001 From: Myrotvorets Date: Sun, 25 Aug 2024 01:36:50 +0300 Subject: [PATCH] Address ESLint issues --- test/functional/controller/monitoring.test.mts | 2 ++ test/unit/lib/utils.test.mts | 1 + test/unit/services/geoipservice.test.mts | 2 ++ 3 files changed, 5 insertions(+) diff --git a/test/functional/controller/monitoring.test.mts b/test/functional/controller/monitoring.test.mts index e72fed61..89e194cb 100644 --- a/test/functional/controller/monitoring.test.mts +++ b/test/functional/controller/monitoring.test.mts @@ -1,3 +1,4 @@ +/* eslint-disable sonarjs/assertions-in-tests */ import { expect } from 'chai'; import type { Express } from 'express'; import request from 'supertest'; @@ -14,6 +15,7 @@ describe('MonitoringController', function () { }); beforeEach(function () { + // eslint-disable-next-line @typescript-eslint/no-unused-expressions expect(healthChecker).not.to.be.undefined; healthChecker!.shutdownRequested = false; }); diff --git a/test/unit/lib/utils.test.mts b/test/unit/lib/utils.test.mts index 3ef22b9d..c1b69136 100644 --- a/test/unit/lib/utils.test.mts +++ b/test/unit/lib/utils.test.mts @@ -13,6 +13,7 @@ describe('utils', function () { const result = observe(fn, ...args); expect(result).to.be.a('number'); + // eslint-disable-next-line @typescript-eslint/no-unused-expressions expect(called).to.be.true; }); }); diff --git a/test/unit/services/geoipservice.test.mts b/test/unit/services/geoipservice.test.mts index 90c0c109..37b7e7b5 100644 --- a/test/unit/services/geoipservice.test.mts +++ b/test/unit/services/geoipservice.test.mts @@ -1,3 +1,5 @@ +/* eslint-disable sonarjs/no-nested-functions */ +/* eslint-disable sonarjs/no-hardcoded-ip */ import { expect } from 'chai'; import { mock } from 'node:test'; import { GeoIPService } from '../../../src/services/geoipservice.mjs';