9639bd1757
Move utils used by /server/tools/* & /server/tests/**/* into /shared folder. Issue: #1336
15 lines
393 B
TypeScript
15 lines
393 B
TypeScript
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
|
|
}
|