1
0
Fork 0
peertube/shared/extra-utils/server/activitypub.ts
Chocobozzz 94565d52bb
Shared utils -> extra-utils
Because they need dev dependencies
2019-04-24 16:25:52 +02:00

14 lines
390 B
TypeScript

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
}