diff options
Diffstat (limited to 'shared/extra-utils/miscs')
-rw-r--r-- | shared/extra-utils/miscs/miscs.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/extra-utils/miscs/miscs.ts b/shared/extra-utils/miscs/miscs.ts index 3c8191ae8..429083fe9 100644 --- a/shared/extra-utils/miscs/miscs.ts +++ b/shared/extra-utils/miscs/miscs.ts | |||
@@ -1,11 +1,11 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import * as ffmpeg from 'fluent-ffmpeg' | ||
5 | import { ensureDir, pathExists, readFile, stat } from 'fs-extra' | ||
4 | import { basename, dirname, isAbsolute, join, resolve } from 'path' | 6 | import { basename, dirname, isAbsolute, join, resolve } from 'path' |
5 | import * as request from 'supertest' | 7 | import * as request from 'supertest' |
6 | import * as WebTorrent from 'webtorrent' | 8 | import * as WebTorrent from 'webtorrent' |
7 | import { ensureDir, pathExists, readFile, stat } from 'fs-extra' | ||
8 | import * as ffmpeg from 'fluent-ffmpeg' | ||
9 | 9 | ||
10 | const expect = chai.expect | 10 | const expect = chai.expect |
11 | let webtorrent: WebTorrent.Instance | 11 | let webtorrent: WebTorrent.Instance |
@@ -44,8 +44,8 @@ function root () { | |||
44 | return root | 44 | return root |
45 | } | 45 | } |
46 | 46 | ||
47 | function buildServerDirectory (internalServerNumber: number, directory: string) { | 47 | function buildServerDirectory (server: { internalServerNumber: number }, directory: string) { |
48 | return join(root(), 'test' + internalServerNumber, directory) | 48 | return join(root(), 'test' + server.internalServerNumber, directory) |
49 | } | 49 | } |
50 | 50 | ||
51 | async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') { | 51 | async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') { |