Skip to content

Commit 2c6dd37

Browse files
author
Bruno Besson
committed
chlouk
1 parent 8115eec commit 2c6dd37

File tree

5 files changed

+0
-15
lines changed

5 files changed

+0
-15
lines changed

src/db/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import path from 'node:path';
2-
import { fileURLToPath } from 'node:url';
32

43
import { retry, type AsyncResultCallback } from 'async';
54
import knex, { Knex } from 'knex';
65

76
import config from '../config.js';
87

9-
const __dirname = fileURLToPath(new URL('.', import.meta.url));
10-
118
export type Configuration = {
129
host: string;
1310
port: number;

test/s3/storage/storage.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import { readFileSync } from 'node:fs';
22
import { resolve } from 'node:path';
3-
import { fileURLToPath } from 'node:url';
43

54
import { ObjectCannedACL } from '@aws-sdk/client-s3';
65
import request from 'supertest';
76

87
import config from '../../../src/config';
98
import { S3Storage } from '../../../src/storage/storage';
109

11-
const __dirname = fileURLToPath(new URL('.', import.meta.url));
12-
1310
const key = 'mtctivk0hjf1wkbckcnyz2rd.png';
1411
// eslint-disable-next-line security/detect-non-literal-fs-filename
1512
const buffer = readFileSync(resolve(__dirname, '../../resources/piano.png'));

test/unit/server/coros/coros.service.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { readFileSync } from 'node:fs';
22
import { resolve } from 'node:path';
3-
import { fileURLToPath } from 'node:url';
43

54
import log from '../../../../src/helpers/logger.js';
65
import { miniatureService } from '../../../../src/miniature.service';
@@ -10,8 +9,6 @@ import { corosApi, WebhookEvent } from '../../../../src/server/coros/coros.api';
109
import { CorosService } from '../../../../src/server/coros/coros.service';
1110
import { userService } from '../../../../src/user.service';
1211

13-
const __dirname = fileURLToPath(new URL('.', import.meta.url));
14-
1512
const FAR_FUTURE = 10000000000;
1613

1714
describe('Coros Service', () => {

test/unit/server/suunto/suunto.service.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { readFileSync } from 'node:fs';
22
import { resolve } from 'node:path';
3-
import { fileURLToPath } from 'node:url';
43

54
import log from '../../../../src/helpers/logger.js';
65
import { miniatureService } from '../../../../src/miniature.service';
@@ -10,8 +9,6 @@ import { suuntoApi } from '../../../../src/server/suunto/suunto.api';
109
import { SuuntoService } from '../../../../src/server/suunto/suunto.service';
1110
import { userService } from '../../../../src/user.service';
1211

13-
const __dirname = fileURLToPath(new URL('.', import.meta.url));
14-
1512
describe('Suunto Service', () => {
1613
beforeEach(() => {
1714
jest.restoreAllMocks();

test/unit/storage/storage.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import { readFileSync } from 'node:fs';
22
import { tmpdir } from 'node:os';
33
import { resolve } from 'node:path';
4-
import { fileURLToPath } from 'node:url';
54

65
import { LocalStorage } from '../../../src/storage/storage.js';
76

8-
const __dirname = fileURLToPath(new URL('.', import.meta.url));
9-
107
const key = 'mtctivk0hjf1wkbckcnyz2rd.png';
118
// eslint-disable-next-line security/detect-non-literal-fs-filename
129
const buffer = readFileSync(resolve(__dirname, '../../resources/piano.png'));

0 commit comments

Comments
 (0)