aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/video-abuses.ts2
-rw-r--r--server/tests/api/friends-advanced.ts12
2 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/check-params/video-abuses.ts b/server/tests/api/check-params/video-abuses.ts
index 30d15778d..eac12b6f0 100644
--- a/server/tests/api/check-params/video-abuses.ts
+++ b/server/tests/api/check-params/video-abuses.ts
@@ -106,7 +106,7 @@ describe('Test video abuses API validators', function () {
106 it('Should fail with a wrong video', async function () { 106 it('Should fail with a wrong video', async function () {
107 const wrongPath = '/api/v1/videos/blabla/abuse' 107 const wrongPath = '/api/v1/videos/blabla/abuse'
108 const fields = {} 108 const fields = {}
109 await makePostBodyRequest({ url: server.url, path: wrongPath, token: server.accessToken, fields}) 109 await makePostBodyRequest({ url: server.url, path: wrongPath, token: server.accessToken, fields })
110 }) 110 })
111 111
112 it('Should fail with a non authenticated user', async function () { 112 it('Should fail with a non authenticated user', async function () {
diff --git a/server/tests/api/friends-advanced.ts b/server/tests/api/friends-advanced.ts
index 139019398..654c959fd 100644
--- a/server/tests/api/friends-advanced.ts
+++ b/server/tests/api/friends-advanced.ts
@@ -25,12 +25,12 @@ describe('Test advanced friends', function () {
25 25
26 async function makeFriendsWrapper (podNumber: number) { 26 async function makeFriendsWrapper (podNumber: number) {
27 const server = servers[podNumber - 1] 27 const server = servers[podNumber - 1]
28 return await makeFriends(server.url, server.accessToken) 28 return makeFriends(server.url, server.accessToken)
29 } 29 }
30 30
31 async function quitFriendsWrapper (podNumber: number) { 31 async function quitFriendsWrapper (podNumber: number) {
32 const server = servers[podNumber - 1] 32 const server = servers[podNumber - 1]
33 return await quitFriends(server.url, server.accessToken) 33 return quitFriends(server.url, server.accessToken)
34 } 34 }
35 35
36 async function removeFriendWrapper (podNumber: number, podNumberToRemove: number) { 36 async function removeFriendWrapper (podNumber: number, podNumberToRemove: number) {
@@ -42,12 +42,12 @@ describe('Test advanced friends', function () {
42 let friendsList = res.body.data 42 let friendsList = res.body.data
43 let podToRemove = friendsList.find(friend => (friend.host === serverToRemove.host)) 43 let podToRemove = friendsList.find(friend => (friend.host === serverToRemove.host))
44 44
45 return await quitOneFriend(server.url, server.accessToken, podToRemove.id) 45 return quitOneFriend(server.url, server.accessToken, podToRemove.id)
46 } 46 }
47 47
48 async function getFriendsListWrapper (podNumber: number) { 48 async function getFriendsListWrapper (podNumber: number) {
49 const server = servers[podNumber - 1] 49 const server = servers[podNumber - 1]
50 return await getFriendsList(server.url) 50 return getFriendsList(server.url)
51 } 51 }
52 52
53 async function uploadVideoWrapper (podNumber: number) { 53 async function uploadVideoWrapper (podNumber: number) {
@@ -56,11 +56,11 @@ describe('Test advanced friends', function () {
56 } 56 }
57 const server = servers[podNumber - 1] 57 const server = servers[podNumber - 1]
58 58
59 return await uploadVideo(server.url, server.accessToken, videoAttributes) 59 return uploadVideo(server.url, server.accessToken, videoAttributes)
60 } 60 }
61 61
62 async function getVideosWrapper (podNumber: number) { 62 async function getVideosWrapper (podNumber: number) {
63 return await getVideosList(servers[podNumber - 1].url) 63 return getVideosList(servers[podNumber - 1].url)
64 } 64 }
65 65
66 // --------------------------------------------------------------- 66 // ---------------------------------------------------------------