(req)
| 200 | |
| 201 | it('should use function defaultType directly as the request content-type checker', () => { |
| 202 | const typeFunction = (req) => req.headers['content-type'].endsWith('+json') |
| 203 | const result = normalizeOptions({}, typeFunction) |
| 204 | assert.strictEqual(result.shouldParse, typeFunction) |
| 205 | assert.strictEqual(result.shouldParse({ headers: { 'content-type': 'application/ld+json' } }), true) |
nothing calls this directly
no outgoing calls
no test coverage detected