Fix caption validators test
This commit is contained in:
parent
3d05209c9a
commit
39a26b2e41
1 changed files with 17 additions and 16 deletions
|
@ -124,22 +124,23 @@ describe('Test video captions API validator', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should fail with an invalid captionfile extension', async function () {
|
// We accept any file now
|
||||||
const attaches = {
|
// it('Should fail with an invalid captionfile extension', async function () {
|
||||||
'captionfile': join(__dirname, '..', '..', 'fixtures', 'subtitle-bad.txt')
|
// const attaches = {
|
||||||
}
|
// 'captionfile': join(__dirname, '..', '..', 'fixtures', 'subtitle-bad.txt')
|
||||||
|
// }
|
||||||
const captionPath = path + videoUUID + '/captions/fr'
|
//
|
||||||
await makeUploadRequest({
|
// const captionPath = path + videoUUID + '/captions/fr'
|
||||||
method: 'PUT',
|
// await makeUploadRequest({
|
||||||
url: server.url,
|
// method: 'PUT',
|
||||||
path: captionPath,
|
// url: server.url,
|
||||||
token: server.accessToken,
|
// path: captionPath,
|
||||||
fields,
|
// token: server.accessToken,
|
||||||
attaches,
|
// fields,
|
||||||
statusCodeExpected: 400
|
// attaches,
|
||||||
})
|
// statusCodeExpected: 400
|
||||||
})
|
// })
|
||||||
|
// })
|
||||||
|
|
||||||
// We don't check the extension yet
|
// We don't check the extension yet
|
||||||
// it('Should fail with an invalid captionfile extension and octet-stream mime type', async function () {
|
// it('Should fail with an invalid captionfile extension and octet-stream mime type', async function () {
|
||||||
|
|
Loading…
Reference in a new issue