diff options
author | Chocobozzz <me@florianbigard.com> | 2019-10-18 16:39:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-10-18 16:39:17 +0200 |
commit | 39a26b2e415a0b665828c043bbf115e97c9f2efc (patch) | |
tree | 2e46c67906edf735ae5e43ccb801fb567c2a68d8 /server/tests/api/check-params/video-captions.ts | |
parent | 3d05209c9a9f1e229f8c704ee5fe06a5c97c9840 (diff) | |
download | PeerTube-39a26b2e415a0b665828c043bbf115e97c9f2efc.tar.gz PeerTube-39a26b2e415a0b665828c043bbf115e97c9f2efc.tar.zst PeerTube-39a26b2e415a0b665828c043bbf115e97c9f2efc.zip |
Fix caption validators test
Diffstat (limited to 'server/tests/api/check-params/video-captions.ts')
-rw-r--r-- | server/tests/api/check-params/video-captions.ts | 33 |
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 () { |