mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Update to standard 7. Goodbye snake_case, I used to love you
This commit is contained in:
parent
881a5e68b6
commit
bc503c2a62
27 changed files with 349 additions and 351 deletions
|
@ -12,8 +12,8 @@ describe('Test parameters validator', function () {
|
|||
let server = null
|
||||
|
||||
function makePostRequest (path, token, fields, attach, done, fail) {
|
||||
let status_code = 400
|
||||
if (fail !== undefined && fail === false) status_code = 200
|
||||
let statusCode = 400
|
||||
if (fail !== undefined && fail === false) statusCode = 200
|
||||
|
||||
const req = request(server.url)
|
||||
.post(path)
|
||||
|
@ -26,18 +26,18 @@ describe('Test parameters validator', function () {
|
|||
req.field(field, value)
|
||||
})
|
||||
|
||||
req.expect(status_code, done)
|
||||
req.expect(statusCode, done)
|
||||
}
|
||||
|
||||
function makePostBodyRequest (path, fields, done, fail) {
|
||||
let status_code = 400
|
||||
if (fail !== undefined && fail === false) status_code = 200
|
||||
let statusCode = 400
|
||||
if (fail !== undefined && fail === false) statusCode = 200
|
||||
|
||||
request(server.url)
|
||||
.post(path)
|
||||
.set('Accept', 'application/json')
|
||||
.send(fields)
|
||||
.expect(status_code, done)
|
||||
.expect(statusCode, done)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue