aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-11 21:50:51 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-19 21:22:28 +0100
commitfeb4bdfd9b46e87aadfa7c0d5338cde887d1f58c (patch)
tree2abc9fbc9569760e218fd52835850b757344b420 /server/tests/api/check-params.js
parent108626609eda75e4ecc0a83a650a4d53c46220e0 (diff)
downloadPeerTube-feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c.tar.gz
PeerTube-feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c.tar.zst
PeerTube-feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c.zip
First version with PostgreSQL
Diffstat (limited to 'server/tests/api/check-params.js')
-rw-r--r--server/tests/api/check-params.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/check-params.js b/server/tests/api/check-params.js
index 444c2fc55..d9e51770c 100644
--- a/server/tests/api/check-params.js
+++ b/server/tests/api/check-params.js
@@ -465,7 +465,7 @@ describe('Test parameters validator', function () {
465 465
466 it('Should return 404 with an incorrect video', function (done) { 466 it('Should return 404 with an incorrect video', function (done) {
467 request(server.url) 467 request(server.url)
468 .get(path + '123456789012345678901234') 468 .get(path + '4da6fde3-88f7-4d16-b119-108df5630b06')
469 .set('Accept', 'application/json') 469 .set('Accept', 'application/json')
470 .expect(404, done) 470 .expect(404, done)
471 }) 471 })
@@ -490,7 +490,7 @@ describe('Test parameters validator', function () {
490 490
491 it('Should fail with a video which does not exist', function (done) { 491 it('Should fail with a video which does not exist', function (done) {
492 request(server.url) 492 request(server.url)
493 .delete(path + '123456789012345678901234') 493 .delete(path + '4da6fde3-88f7-4d16-b119-108df5630b06')
494 .set('Authorization', 'Bearer ' + server.accessToken) 494 .set('Authorization', 'Bearer ' + server.accessToken)
495 .expect(404, done) 495 .expect(404, done)
496 }) 496 })
@@ -711,7 +711,7 @@ describe('Test parameters validator', function () {
711 711
712 it('Should return 404 with a non existing id', function (done) { 712 it('Should return 404 with a non existing id', function (done) {
713 request(server.url) 713 request(server.url)
714 .delete(path + '579f982228c99c221d8092b8') 714 .delete(path + '45')
715 .set('Authorization', 'Bearer ' + server.accessToken) 715 .set('Authorization', 'Bearer ' + server.accessToken)
716 .expect(404, done) 716 .expect(404, done)
717 }) 717 })