PeerTube/server/tests/utils/activitypub.ts

16 lines
393 B
TypeScript
Raw Normal View History

2017-11-30 06:15:25 -06:00
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
}