Convert real world script to typescript
[oweals/peertube.git] / server / tests / utils / pods.ts
index 0bea6db9782f8a73a636f49c5991facecc44d555..a86dd20d912cd12e3aea1cfafbcd5849264c85e3 100644 (file)
@@ -37,7 +37,7 @@ async function makeFriends (url: string, accessToken: string, expectedStatus = 2
       'localhost:9003'
     ]
   }
-  const path = '/api/v1/pods/makefriends'
+  const path = '/api/v1/pods/make-friends'
 
   // The first pod make friend with the third
   const res = await request(url)
@@ -54,7 +54,7 @@ async function makeFriends (url: string, accessToken: string, expectedStatus = 2
 }
 
 async function quitFriends (url: string, accessToken: string, expectedStatus = 204) {
-  const path = '/api/v1/pods/quitfriends'
+  const path = '/api/v1/pods/quit-friends'
 
   // The first pod make friend with the third
   const res = await request(url)