Skip to content

Commit

Permalink
Address ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Aug 24, 2024
1 parent 4713a51 commit 652fad2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/controller/monitoring.test.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable sonarjs/assertions-in-tests */
import { expect } from 'chai';
import type { Express } from 'express';
import request from 'supertest';
Expand All @@ -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;
});
Expand Down
1 change: 1 addition & 0 deletions test/unit/lib/utils.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});
Expand Down
2 changes: 2 additions & 0 deletions test/unit/services/geoipservice.test.mts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 652fad2

Please sign in to comment.