blob: cf3c1c3b3c7b63833a29e5fb82c50448cdf696cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}
|