Browse Source

Fix caption validators test

Chocobozzz 1 month ago
parent
commit
39a26b2e41
No account linked to committer's email address
1 changed files with 17 additions and 16 deletions
  1. 17
    16
      server/tests/api/check-params/video-captions.ts

+ 17
- 16
server/tests/api/check-params/video-captions.ts View File

@@ -124,22 +124,23 @@ describe('Test video captions API validator', function () {
124 124
       })
125 125
     })
126 126
 
127
-    it('Should fail with an invalid captionfile extension', async function () {
128
-      const attaches = {
129
-        'captionfile': join(__dirname, '..', '..', 'fixtures', 'subtitle-bad.txt')
130
-      }
131
-
132
-      const captionPath = path + videoUUID + '/captions/fr'
133
-      await makeUploadRequest({
134
-        method: 'PUT',
135
-        url: server.url,
136
-        path: captionPath,
137
-        token: server.accessToken,
138
-        fields,
139
-        attaches,
140
-        statusCodeExpected: 400
141
-      })
142
-    })
127
+    // We accept any file now
128
+    // it('Should fail with an invalid captionfile extension', async function () {
129
+    //   const attaches = {
130
+    //     'captionfile': join(__dirname, '..', '..', 'fixtures', 'subtitle-bad.txt')
131
+    //   }
132
+    //
133
+    //   const captionPath = path + videoUUID + '/captions/fr'
134
+    //   await makeUploadRequest({
135
+    //     method: 'PUT',
136
+    //     url: server.url,
137
+    //     path: captionPath,
138
+    //     token: server.accessToken,
139
+    //     fields,
140
+    //     attaches,
141
+    //     statusCodeExpected: 400
142
+    //   })
143
+    // })
143 144
 
144 145
     // We don't check the extension yet
145 146
     // it('Should fail with an invalid captionfile extension and octet-stream mime type', async function () {

Loading…
Cancel
Save