Move fixtures in tests/
authorChocobozzz <me@florianbigard.com>
Thu, 7 Jun 2018 07:48:10 +0000 (09:48 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 7 Jun 2018 07:57:35 +0000 (09:57 +0200)
54 files changed:
server/tests/api/check-params/users.ts
server/tests/api/check-params/videos.ts
server/tests/api/fixtures/avatar-big.png [deleted file]
server/tests/api/fixtures/avatar-resized.png [deleted file]
server/tests/api/fixtures/avatar.png [deleted file]
server/tests/api/fixtures/avatar2-resized.png [deleted file]
server/tests/api/fixtures/avatar2.png [deleted file]
server/tests/api/fixtures/preview.jpg [deleted file]
server/tests/api/fixtures/thumbnail.jpg [deleted file]
server/tests/api/fixtures/video_60fps_short.mp4 [deleted file]
server/tests/api/fixtures/video_short-480.webm [deleted file]
server/tests/api/fixtures/video_short.mp4 [deleted file]
server/tests/api/fixtures/video_short.mp4.jpg [deleted file]
server/tests/api/fixtures/video_short.ogv [deleted file]
server/tests/api/fixtures/video_short.ogv.jpg [deleted file]
server/tests/api/fixtures/video_short.webm [deleted file]
server/tests/api/fixtures/video_short.webm.jpg [deleted file]
server/tests/api/fixtures/video_short1-preview.webm.jpg [deleted file]
server/tests/api/fixtures/video_short1.webm [deleted file]
server/tests/api/fixtures/video_short1.webm.jpg [deleted file]
server/tests/api/fixtures/video_short2.webm [deleted file]
server/tests/api/fixtures/video_short2.webm.jpg [deleted file]
server/tests/api/fixtures/video_short3.webm [deleted file]
server/tests/api/fixtures/video_short3.webm.jpg [deleted file]
server/tests/api/fixtures/video_short_fake.webm [deleted file]
server/tests/api/videos/multiple-servers.ts
server/tests/cli/create-import-video-file-job.ts
server/tests/fixtures/avatar-big.png [new file with mode: 0644]
server/tests/fixtures/avatar-resized.png [new file with mode: 0644]
server/tests/fixtures/avatar.png [new file with mode: 0644]
server/tests/fixtures/avatar2-resized.png [new file with mode: 0644]
server/tests/fixtures/avatar2.png [new file with mode: 0644]
server/tests/fixtures/preview.jpg [new file with mode: 0644]
server/tests/fixtures/thumbnail.jpg [new file with mode: 0644]
server/tests/fixtures/video_60fps_short.mp4 [new file with mode: 0644]
server/tests/fixtures/video_short-480.webm [new file with mode: 0644]
server/tests/fixtures/video_short.mp4 [new file with mode: 0644]
server/tests/fixtures/video_short.mp4.jpg [new file with mode: 0644]
server/tests/fixtures/video_short.ogv [new file with mode: 0644]
server/tests/fixtures/video_short.ogv.jpg [new file with mode: 0644]
server/tests/fixtures/video_short.webm [new file with mode: 0644]
server/tests/fixtures/video_short.webm.jpg [new file with mode: 0644]
server/tests/fixtures/video_short1-preview.webm.jpg [new file with mode: 0644]
server/tests/fixtures/video_short1.webm [new file with mode: 0644]
server/tests/fixtures/video_short1.webm.jpg [new file with mode: 0644]
server/tests/fixtures/video_short2.webm [new file with mode: 0644]
server/tests/fixtures/video_short2.webm.jpg [new file with mode: 0644]
server/tests/fixtures/video_short3.webm [new file with mode: 0644]
server/tests/fixtures/video_short3.webm.jpg [new file with mode: 0644]
server/tests/fixtures/video_short_fake.webm [new file with mode: 0644]
server/tests/utils/miscs/miscs.ts
server/tests/utils/requests/requests.ts
server/tests/utils/users/users.ts
server/tests/utils/videos/videos.ts

index e8a6ffd196d701c302ee513671ed7157e46a15fb..dba57778de4491257a89cf3f837bdf48444f62e9 100644 (file)
@@ -279,7 +279,7 @@ describe('Test users API validators', function () {
     it('Should fail without an incorrect input file', async function () {
       const fields = {}
       const attaches = {
-        'avatarfile': join(__dirname, '..', 'fixtures', 'video_short.mp4')
+        'avatarfile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4')
       }
       await makeUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches })
     })
@@ -287,7 +287,7 @@ describe('Test users API validators', function () {
     it('Should fail with a big file', async function () {
       const fields = {}
       const attaches = {
-        'avatarfile': join(__dirname, '..', 'fixtures', 'avatar-big.png')
+        'avatarfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png')
       }
       await makeUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches })
     })
@@ -295,7 +295,7 @@ describe('Test users API validators', function () {
     it('Should succeed with the correct params', async function () {
       const fields = {}
       const attaches = {
-        'avatarfile': join(__dirname, '..', 'fixtures', 'avatar.png')
+        'avatarfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png')
       }
       await makeUploadRequest({
         url: server.url,
index 7b40b91e708dd10ce117504a3b98ef21e6ae5094..bc6c7fc46deadd70a72a2527df07713b973d80d7 100644 (file)
@@ -163,7 +163,7 @@ describe('Test videos API validator', function () {
   describe('When adding a video', function () {
     let baseCorrectParams
     const baseCorrectAttaches = {
-      'videofile': join(__dirname, '..', 'fixtures', 'video_short.webm')
+      'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.webm')
     }
 
     before(function () {
@@ -313,7 +313,7 @@ describe('Test videos API validator', function () {
     it('Should fail without an incorrect input file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'videofile': join(__dirname, '..', 'fixtures', 'video_short_fake.webm')
+        'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm')
       }
       await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches })
     })
@@ -321,8 +321,8 @@ describe('Test videos API validator', function () {
     it('Should fail with an incorrect thumbnail file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'thumbnailfile': join(__dirname, '..', 'fixtures', 'avatar.png'),
-        'videofile': join(__dirname, '..', 'fixtures', 'video_short_fake.webm')
+        'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'),
+        'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm')
       }
 
       await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches })
@@ -331,8 +331,8 @@ describe('Test videos API validator', function () {
     it('Should fail with a big thumbnail file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'thumbnailfile': join(__dirname, '..', 'fixtures', 'avatar-big.png'),
-        'videofile': join(__dirname, '..', 'fixtures', 'video_short_fake.webm')
+        'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'),
+        'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm')
       }
 
       await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches })
@@ -341,8 +341,8 @@ describe('Test videos API validator', function () {
     it('Should fail with an incorrect preview file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'previewfile': join(__dirname, '..', 'fixtures', 'avatar.png'),
-        'videofile': join(__dirname, '..', 'fixtures', 'video_short_fake.webm')
+        'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'),
+        'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm')
       }
 
       await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches })
@@ -351,8 +351,8 @@ describe('Test videos API validator', function () {
     it('Should fail with a big preview file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'previewfile': join(__dirname, '..', 'fixtures', 'avatar-big.png'),
-        'videofile': join(__dirname, '..', 'fixtures', 'video_short_fake.webm')
+        'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'),
+        'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm')
       }
 
       await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches })
@@ -377,7 +377,7 @@ describe('Test videos API validator', function () {
 
       {
         const attaches = immutableAssign(baseCorrectAttaches, {
-          videofile: join(__dirname, '..', 'fixtures', 'video_short.mp4')
+          videofile: join(__dirname, '..', '..', 'fixtures', 'video_short.mp4')
         })
 
         await makeUploadRequest({
@@ -392,7 +392,7 @@ describe('Test videos API validator', function () {
 
       {
         const attaches = immutableAssign(baseCorrectAttaches, {
-          videofile: join(__dirname, '..', 'fixtures', 'video_short.ogv')
+          videofile: join(__dirname, '..', '..', 'fixtures', 'video_short.ogv')
         })
 
         await makeUploadRequest({
@@ -510,7 +510,7 @@ describe('Test videos API validator', function () {
     it('Should fail with an incorrect thumbnail file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'thumbnailfile': join(__dirname, '..', 'fixtures', 'avatar.png')
+        'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png')
       }
 
       await makeUploadRequest({
@@ -526,7 +526,7 @@ describe('Test videos API validator', function () {
     it('Should fail with a big thumbnail file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'thumbnailfile': join(__dirname, '..', 'fixtures', 'avatar-big.png')
+        'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png')
       }
 
       await makeUploadRequest({
@@ -542,7 +542,7 @@ describe('Test videos API validator', function () {
     it('Should fail with an incorrect preview file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'previewfile': join(__dirname, '..', 'fixtures', 'avatar.png')
+        'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png')
       }
 
       await makeUploadRequest({
@@ -558,7 +558,7 @@ describe('Test videos API validator', function () {
     it('Should fail with a big preview file', async function () {
       const fields = baseCorrectParams
       const attaches = {
-        'previewfile': join(__dirname, '..', 'fixtures', 'avatar-big.png')
+        'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png')
       }
 
       await makeUploadRequest({
diff --git a/server/tests/api/fixtures/avatar-big.png b/server/tests/api/fixtures/avatar-big.png
deleted file mode 100644 (file)
index e593e40..0000000
Binary files a/server/tests/api/fixtures/avatar-big.png and /dev/null differ
diff --git a/server/tests/api/fixtures/avatar-resized.png b/server/tests/api/fixtures/avatar-resized.png
deleted file mode 100644 (file)
index 9d84151..0000000
Binary files a/server/tests/api/fixtures/avatar-resized.png and /dev/null differ
diff --git a/server/tests/api/fixtures/avatar.png b/server/tests/api/fixtures/avatar.png
deleted file mode 100644 (file)
index 4b7fd2c..0000000
Binary files a/server/tests/api/fixtures/avatar.png and /dev/null differ
diff --git a/server/tests/api/fixtures/avatar2-resized.png b/server/tests/api/fixtures/avatar2-resized.png
deleted file mode 100644 (file)
index 44149fa..0000000
Binary files a/server/tests/api/fixtures/avatar2-resized.png and /dev/null differ
diff --git a/server/tests/api/fixtures/avatar2.png b/server/tests/api/fixtures/avatar2.png
deleted file mode 100644 (file)
index dae7021..0000000
Binary files a/server/tests/api/fixtures/avatar2.png and /dev/null differ
diff --git a/server/tests/api/fixtures/preview.jpg b/server/tests/api/fixtures/preview.jpg
deleted file mode 100644 (file)
index c40ece8..0000000
Binary files a/server/tests/api/fixtures/preview.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/thumbnail.jpg b/server/tests/api/fixtures/thumbnail.jpg
deleted file mode 100644 (file)
index cc3af8a..0000000
Binary files a/server/tests/api/fixtures/thumbnail.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_60fps_short.mp4 b/server/tests/api/fixtures/video_60fps_short.mp4
deleted file mode 100644 (file)
index ff0593c..0000000
Binary files a/server/tests/api/fixtures/video_60fps_short.mp4 and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short-480.webm b/server/tests/api/fixtures/video_short-480.webm
deleted file mode 100644 (file)
index 3145105..0000000
Binary files a/server/tests/api/fixtures/video_short-480.webm and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short.mp4 b/server/tests/api/fixtures/video_short.mp4
deleted file mode 100644 (file)
index 3567836..0000000
Binary files a/server/tests/api/fixtures/video_short.mp4 and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short.mp4.jpg b/server/tests/api/fixtures/video_short.mp4.jpg
deleted file mode 100644 (file)
index 48790ff..0000000
Binary files a/server/tests/api/fixtures/video_short.mp4.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short.ogv b/server/tests/api/fixtures/video_short.ogv
deleted file mode 100644 (file)
index 9e253da..0000000
Binary files a/server/tests/api/fixtures/video_short.ogv and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short.ogv.jpg b/server/tests/api/fixtures/video_short.ogv.jpg
deleted file mode 100644 (file)
index c4c1d00..0000000
Binary files a/server/tests/api/fixtures/video_short.ogv.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short.webm b/server/tests/api/fixtures/video_short.webm
deleted file mode 100644 (file)
index bf4b0ab..0000000
Binary files a/server/tests/api/fixtures/video_short.webm and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short.webm.jpg b/server/tests/api/fixtures/video_short.webm.jpg
deleted file mode 100644 (file)
index b0dffd0..0000000
Binary files a/server/tests/api/fixtures/video_short.webm.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short1-preview.webm.jpg b/server/tests/api/fixtures/video_short1-preview.webm.jpg
deleted file mode 100644 (file)
index d2a068b..0000000
Binary files a/server/tests/api/fixtures/video_short1-preview.webm.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short1.webm b/server/tests/api/fixtures/video_short1.webm
deleted file mode 100644 (file)
index 70ac0c6..0000000
Binary files a/server/tests/api/fixtures/video_short1.webm and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short1.webm.jpg b/server/tests/api/fixtures/video_short1.webm.jpg
deleted file mode 100644 (file)
index 2db2197..0000000
Binary files a/server/tests/api/fixtures/video_short1.webm.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short2.webm b/server/tests/api/fixtures/video_short2.webm
deleted file mode 100644 (file)
index 13d72df..0000000
Binary files a/server/tests/api/fixtures/video_short2.webm and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short2.webm.jpg b/server/tests/api/fixtures/video_short2.webm.jpg
deleted file mode 100644 (file)
index ed5952e..0000000
Binary files a/server/tests/api/fixtures/video_short2.webm.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short3.webm b/server/tests/api/fixtures/video_short3.webm
deleted file mode 100644 (file)
index cde5dcd..0000000
Binary files a/server/tests/api/fixtures/video_short3.webm and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short3.webm.jpg b/server/tests/api/fixtures/video_short3.webm.jpg
deleted file mode 100644 (file)
index b7c41cc..0000000
Binary files a/server/tests/api/fixtures/video_short3.webm.jpg and /dev/null differ
diff --git a/server/tests/api/fixtures/video_short_fake.webm b/server/tests/api/fixtures/video_short_fake.webm
deleted file mode 100644 (file)
index d85290a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-this is a fake video mouahahah
index fc7c0cb21c8be23480368a202083190fbdcb988b..5f9a766216da99c1c6abde69fcac9f8c78e82d8d 100644 (file)
@@ -938,7 +938,7 @@ describe('Test multiple servers', function () {
         .field('channelId', '1')
         .field('commentsEnabled', 'true')
 
-      const filePath = join(__dirname, '..', '..', 'api', 'fixtures', 'video_short.webm')
+      const filePath = join(__dirname, '..', '..', 'fixtures', 'video_short.webm')
 
       await req.attach('videofile', filePath)
         .expect(200)
index 251088882addbf9a9abfb8af1dda64602d090d65..372c7e51751a8c23ebc3e4951c5486116a0bacec 100644 (file)
@@ -59,7 +59,7 @@ describe('Test create import video jobs', function () {
 
   it('Should run a import job on video 1 with a lower resolution', async function () {
     const env = getEnvCli(servers[0])
-    await execCLI(`${env} npm run create-import-video-file-job -- -v ${video1UUID} -i server/tests/api/fixtures/video_short-480.webm`)
+    await execCLI(`${env} npm run create-import-video-file-job -- -v ${video1UUID} -i server/tests/fixtures/video_short-480.webm`)
 
     await wait(30000)
 
@@ -83,7 +83,7 @@ describe('Test create import video jobs', function () {
 
   it('Should run a import job on video 2 with the same resolution', async function () {
     const env = getEnvCli(servers[1])
-    await execCLI(`${env} npm run create-import-video-file-job -- -v ${video2UUID} -i server/tests/api/fixtures/video_short.ogv`)
+    await execCLI(`${env} npm run create-import-video-file-job -- -v ${video2UUID} -i server/tests/fixtures/video_short.ogv`)
 
     await wait(30000)
 
diff --git a/server/tests/fixtures/avatar-big.png b/server/tests/fixtures/avatar-big.png
new file mode 100644 (file)
index 0000000..e593e40
Binary files /dev/null and b/server/tests/fixtures/avatar-big.png differ
diff --git a/server/tests/fixtures/avatar-resized.png b/server/tests/fixtures/avatar-resized.png
new file mode 100644 (file)
index 0000000..9d84151
Binary files /dev/null and b/server/tests/fixtures/avatar-resized.png differ
diff --git a/server/tests/fixtures/avatar.png b/server/tests/fixtures/avatar.png
new file mode 100644 (file)
index 0000000..4b7fd2c
Binary files /dev/null and b/server/tests/fixtures/avatar.png differ
diff --git a/server/tests/fixtures/avatar2-resized.png b/server/tests/fixtures/avatar2-resized.png
new file mode 100644 (file)
index 0000000..44149fa
Binary files /dev/null and b/server/tests/fixtures/avatar2-resized.png differ
diff --git a/server/tests/fixtures/avatar2.png b/server/tests/fixtures/avatar2.png
new file mode 100644 (file)
index 0000000..dae7021
Binary files /dev/null and b/server/tests/fixtures/avatar2.png differ
diff --git a/server/tests/fixtures/preview.jpg b/server/tests/fixtures/preview.jpg
new file mode 100644 (file)
index 0000000..c40ece8
Binary files /dev/null and b/server/tests/fixtures/preview.jpg differ
diff --git a/server/tests/fixtures/thumbnail.jpg b/server/tests/fixtures/thumbnail.jpg
new file mode 100644 (file)
index 0000000..cc3af8a
Binary files /dev/null and b/server/tests/fixtures/thumbnail.jpg differ
diff --git a/server/tests/fixtures/video_60fps_short.mp4 b/server/tests/fixtures/video_60fps_short.mp4
new file mode 100644 (file)
index 0000000..ff0593c
Binary files /dev/null and b/server/tests/fixtures/video_60fps_short.mp4 differ
diff --git a/server/tests/fixtures/video_short-480.webm b/server/tests/fixtures/video_short-480.webm
new file mode 100644 (file)
index 0000000..3145105
Binary files /dev/null and b/server/tests/fixtures/video_short-480.webm differ
diff --git a/server/tests/fixtures/video_short.mp4 b/server/tests/fixtures/video_short.mp4
new file mode 100644 (file)
index 0000000..3567836
Binary files /dev/null and b/server/tests/fixtures/video_short.mp4 differ
diff --git a/server/tests/fixtures/video_short.mp4.jpg b/server/tests/fixtures/video_short.mp4.jpg
new file mode 100644 (file)
index 0000000..48790ff
Binary files /dev/null and b/server/tests/fixtures/video_short.mp4.jpg differ
diff --git a/server/tests/fixtures/video_short.ogv b/server/tests/fixtures/video_short.ogv
new file mode 100644 (file)
index 0000000..9e253da
Binary files /dev/null and b/server/tests/fixtures/video_short.ogv differ
diff --git a/server/tests/fixtures/video_short.ogv.jpg b/server/tests/fixtures/video_short.ogv.jpg
new file mode 100644 (file)
index 0000000..c4c1d00
Binary files /dev/null and b/server/tests/fixtures/video_short.ogv.jpg differ
diff --git a/server/tests/fixtures/video_short.webm b/server/tests/fixtures/video_short.webm
new file mode 100644 (file)
index 0000000..bf4b0ab
Binary files /dev/null and b/server/tests/fixtures/video_short.webm differ
diff --git a/server/tests/fixtures/video_short.webm.jpg b/server/tests/fixtures/video_short.webm.jpg
new file mode 100644 (file)
index 0000000..b0dffd0
Binary files /dev/null and b/server/tests/fixtures/video_short.webm.jpg differ
diff --git a/server/tests/fixtures/video_short1-preview.webm.jpg b/server/tests/fixtures/video_short1-preview.webm.jpg
new file mode 100644 (file)
index 0000000..d2a068b
Binary files /dev/null and b/server/tests/fixtures/video_short1-preview.webm.jpg differ
diff --git a/server/tests/fixtures/video_short1.webm b/server/tests/fixtures/video_short1.webm
new file mode 100644 (file)
index 0000000..70ac0c6
Binary files /dev/null and b/server/tests/fixtures/video_short1.webm differ
diff --git a/server/tests/fixtures/video_short1.webm.jpg b/server/tests/fixtures/video_short1.webm.jpg
new file mode 100644 (file)
index 0000000..2db2197
Binary files /dev/null and b/server/tests/fixtures/video_short1.webm.jpg differ
diff --git a/server/tests/fixtures/video_short2.webm b/server/tests/fixtures/video_short2.webm
new file mode 100644 (file)
index 0000000..13d72df
Binary files /dev/null and b/server/tests/fixtures/video_short2.webm differ
diff --git a/server/tests/fixtures/video_short2.webm.jpg b/server/tests/fixtures/video_short2.webm.jpg
new file mode 100644 (file)
index 0000000..ed5952e
Binary files /dev/null and b/server/tests/fixtures/video_short2.webm.jpg differ
diff --git a/server/tests/fixtures/video_short3.webm b/server/tests/fixtures/video_short3.webm
new file mode 100644 (file)
index 0000000..cde5dcd
Binary files /dev/null and b/server/tests/fixtures/video_short3.webm differ
diff --git a/server/tests/fixtures/video_short3.webm.jpg b/server/tests/fixtures/video_short3.webm.jpg
new file mode 100644 (file)
index 0000000..b7c41cc
Binary files /dev/null and b/server/tests/fixtures/video_short3.webm.jpg differ
diff --git a/server/tests/fixtures/video_short_fake.webm b/server/tests/fixtures/video_short_fake.webm
new file mode 100644 (file)
index 0000000..d85290a
--- /dev/null
@@ -0,0 +1 @@
+this is a fake video mouahahah
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)
 }
 
 // ---------------------------------------------------------------------------
index a9b1dff9a28e43a78f1290d4ccda236803028972..b6195089dd169e95711b4e46474fc2e473a7865e 100644 (file)
@@ -1,5 +1,5 @@
 import * as request from 'supertest'
-import { buildAbsoluteFixturePath } from '../'
+import { buildAbsoluteFixturePath } from '../miscs/miscs'
 
 function makeGetRequest (options: {
   url: string,
index d31e57a25675e82e52e4e2eebd35e01b7d70d20a..34d50f7adefc40a2959f05aa34708dc3b01d21f4 100644 (file)
@@ -164,7 +164,7 @@ function updateMyAvatar (options: {
   if (isAbsolute(options.fixture)) {
     filePath = options.fixture
   } else {
-    filePath = join(__dirname, '..', '..', 'api', 'fixtures', options.fixture)
+    filePath = join(__dirname, '..', '..', 'fixtures', options.fixture)
   }
 
   return makeUploadRequest({
index 746b5ca6b558e69383d1f970a95baafcb27131ea..ab0ce12ecc92ba87a797e35feb3c5d2a90b05d1b 100644 (file)
@@ -502,8 +502,6 @@ async function completeVideoCheck (
   expect(dateIsValid(video.updatedAt)).to.be.true
 
   if (attributes.publishedAt) {
-    console.log(attributes.publishedAt)
-    console.log(video.publishedAt)
     expect(video.publishedAt).to.equal(attributes.publishedAt)
   }