mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Shared utils -> extra-utils
Because they need dev dependencies
This commit is contained in:
parent
4ee7a4c9ac
commit
94565d52bb
131 changed files with 250 additions and 238 deletions
14
shared/extra-utils/server/activitypub.ts
Normal file
14
shared/extra-utils/server/activitypub.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import * as request from 'supertest'
|
||||
|
||||
function makeActivityPubGetRequest (url: string, path: string, expectedStatus = 200) {
|
||||
return request(url)
|
||||
.get(path)
|
||||
.set('Accept', 'application/activity+json,text/html;q=0.9,\\*/\\*;q=0.8')
|
||||
.expect(expectedStatus)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
makeActivityPubGetRequest
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue