aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs/miscs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/miscs/miscs.ts')
-rw-r--r--shared/extra-utils/miscs/miscs.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/extra-utils/miscs/miscs.ts b/shared/extra-utils/miscs/miscs.ts
index ae8a26c98..6b0f6d990 100644
--- a/shared/extra-utils/miscs/miscs.ts
+++ b/shared/extra-utils/miscs/miscs.ts
@@ -44,6 +44,10 @@ function root () {
44 return root 44 return root
45} 45}
46 46
47function buildServerDirectory (internalServerNumber: number, directory: string) {
48 return join(root(), 'test' + internalServerNumber, directory)
49}
50
47async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') { 51async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') {
48 const res = await request(url) 52 const res = await request(url)
49 .get(imagePath) 53 .get(imagePath)
@@ -105,6 +109,7 @@ async function generateHighBitrateVideo () {
105export { 109export {
106 dateIsValid, 110 dateIsValid,
107 wait, 111 wait,
112 buildServerDirectory,
108 webtorrentAdd, 113 webtorrentAdd,
109 immutableAssign, 114 immutableAssign,
110 testImage, 115 testImage,