Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CptSchnitz committed Oct 13, 2024
1 parent da86b65 commit c9e0964
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/config.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Interceptable, MockAgent, setGlobalDispatcher } from 'undici';
import { commonDbPartialV1, commonS3PartialV2 } from '@map-colonies/schemas';
import { commonDbPartialV1, commonS3PartialV1 } from '@map-colonies/schemas';
import { StatusCodes } from 'http-status-codes';
import { config } from '../src/config';

Expand Down Expand Up @@ -138,13 +138,14 @@ describe('config', () => {
jest.resetModules();
process.env.S3_ACCESS_KEY = 'access';
process.env.S3_SECRET_KEY = 'secret';
process.env.S3_ENDPOINT = 'http://localhost:9000';

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
const { config } = require('../src/config') as typeof import('../src/config');
const configInstance = await config({
configName: 'name',
version: 1,
schema: commonS3PartialV2,
schema: commonS3PartialV1,
configServerUrl: URL,
localConfigPath: './tests/config',
offlineMode: true,
Expand Down Expand Up @@ -236,7 +237,7 @@ describe('config', () => {
const promise = config({
configName: 'name',
version: 1,
schema: commonS3PartialV2,
schema: commonS3PartialV1,
configServerUrl: URL,
localConfigPath: './tests/config',
});
Expand Down

0 comments on commit c9e0964

Please sign in to comment.