]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/utils/miscs/miscs.ts
Move fixtures in tests/
[github/Chocobozzz/PeerTube.git] / server / tests / utils / miscs / miscs.ts
index 53cb67baf7f54fcde78fc11b1aef4c68e9c3a694..5e46004a7f48f8a24cac8bfc3961a7268f983483 100644 (file)
@@ -46,7 +46,7 @@ async function testImage (url: string, imageName: string, imagePath: string, ext
 
     const body = res.body
 
-    const data = await readFileBufferPromise(join(__dirname, '..', '..', 'api', 'fixtures', imageName + extension))
+    const data = await readFileBufferPromise(join(__dirname, '..', '..', 'fixtures', imageName + extension))
     const minLength = body.length - ((20 * body.length) / 100)
     const maxLength = body.length + ((20 * body.length) / 100)
 
@@ -63,7 +63,7 @@ function buildAbsoluteFixturePath (path: string) {
     return path
   }
 
-  return join(__dirname, '..', '..', 'api', 'fixtures', path)
+  return join(__dirname, '..', '..', 'fixtures', path)
 }
 
 // ---------------------------------------------------------------------------