projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First version with PostgreSQL
[oweals/peertube.git]
/
server
/
tests
/
api
/
check-params.js
diff --git
a/server/tests/api/check-params.js
b/server/tests/api/check-params.js
index 444c2fc558c80ff0b2dec7f2a3496ed943c4bc4a..d9e51770cc82200e743fdf06baef8a816b2d0a94 100644
(file)
--- a/
server/tests/api/check-params.js
+++ b/
server/tests/api/check-params.js
@@
-465,7
+465,7
@@
describe('Test parameters validator', function () {
it('Should return 404 with an incorrect video', function (done) {
request(server.url)
it('Should return 404 with an incorrect video', function (done) {
request(server.url)
- .get(path + '
123456789012345678901234
')
+ .get(path + '
4da6fde3-88f7-4d16-b119-108df5630b06
')
.set('Accept', 'application/json')
.expect(404, done)
})
.set('Accept', 'application/json')
.expect(404, done)
})
@@
-490,7
+490,7
@@
describe('Test parameters validator', function () {
it('Should fail with a video which does not exist', function (done) {
request(server.url)
it('Should fail with a video which does not exist', function (done) {
request(server.url)
- .delete(path + '
123456789012345678901234
')
+ .delete(path + '
4da6fde3-88f7-4d16-b119-108df5630b06
')
.set('Authorization', 'Bearer ' + server.accessToken)
.expect(404, done)
})
.set('Authorization', 'Bearer ' + server.accessToken)
.expect(404, done)
})
@@
-711,7
+711,7
@@
describe('Test parameters validator', function () {
it('Should return 404 with a non existing id', function (done) {
request(server.url)
it('Should return 404 with a non existing id', function (done) {
request(server.url)
- .delete(path + '
579f982228c99c221d8092b8
')
+ .delete(path + '
45
')
.set('Authorization', 'Bearer ' + server.accessToken)
.expect(404, done)
})
.set('Authorization', 'Bearer ' + server.accessToken)
.expect(404, done)
})