aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/extra-utils/server/activitypub.ts
blob: eccb198cad17714e99dacbf6e763692b2c734e30 (plain) (tree)
1
2
3
4
5
6
7

                                    
                                                                                      


                                                                             
                           






                                                                              
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
}