aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/tests/api/check-params/video-captions.ts33
1 files changed, 17 insertions, 16 deletions
diff --git a/server/tests/api/check-params/video-captions.ts b/server/tests/api/check-params/video-captions.ts
index 4a373d43d..6ddc20d69 100644
--- a/server/tests/api/check-params/video-captions.ts
+++ b/server/tests/api/check-params/video-captions.ts
@@ -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 () { 127 // We accept any file now
128 const attaches = { 128 // it('Should fail with an invalid captionfile extension', async function () {
129 'captionfile': join(__dirname, '..', '..', 'fixtures', 'subtitle-bad.txt') 129 // const attaches = {
130 } 130 // 'captionfile': join(__dirname, '..', '..', 'fixtures', 'subtitle-bad.txt')
131 131 // }
132 const captionPath = path + videoUUID + '/captions/fr' 132 //
133 await makeUploadRequest({ 133 // const captionPath = path + videoUUID + '/captions/fr'
134 method: 'PUT', 134 // await makeUploadRequest({
135 url: server.url, 135 // method: 'PUT',
136 path: captionPath, 136 // url: server.url,
137 token: server.accessToken, 137 // path: captionPath,
138 fields, 138 // token: server.accessToken,
139 attaches, 139 // fields,
140 statusCodeExpected: 400 140 // attaches,
141 }) 141 // statusCodeExpected: 400
142 }) 142 // })
143 // })
143 144
144 // We don't check the extension yet 145 // We don't check the extension yet
145 // it('Should fail with an invalid captionfile extension and octet-stream mime type', async function () { 146 // it('Should fail with an invalid captionfile extension and octet-stream mime type', async function () {