()
| 10 | static route = { base: 'runs' } |
| 11 | |
| 12 | async handle() { |
| 13 | const { requiredString } = await this._requestJson({ |
| 14 | schema: Joi.object({ |
| 15 | requiredString: Joi.string().required(), |
| 16 | }).required(), |
| 17 | url: '/repos/badges/shields/check-runs', |
| 18 | options: { |
| 19 | headers: { |
| 20 | Accept: 'application/vnd.github.antiope-preview+json', |
| 21 | }, |
| 22 | }, |
| 23 | }) |
| 24 | return { message: requiredString } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | it('forwards custom Accept header', async function () { |
nothing calls this directly
no test coverage detected