mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Move utils to /shared
Move utils used by /server/tools/* & /server/tests/**/* into /shared folder. Issue: #1336
This commit is contained in:
parent
71607e4a65
commit
9639bd1757
104 changed files with 318 additions and 196 deletions
15
shared/utils/server/activitypub.ts
Normal file
15
shared/utils/server/activitypub.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import * as request from 'supertest'
|
||||
|
||||
function makeActivityPubGetRequest (url: string, path: string) {
|
||||
return request(url)
|
||||
.get(path)
|
||||
.set('Accept', 'application/activity+json,text/html;q=0.9,\\*/\\*;q=0.8')
|
||||
.expect(200)
|
||||
.expect('Content-Type', /json/)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
makeActivityPubGetRequest
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue