Headers returned from a mock function isn't lower cased, compare the two following examples.
scope.head('/').reply(200, '', { 'X-Test': 'Hello' })
scope.head('/').reply(() => [200, '', { 'X-Test': 'Hello' }])
The first one correctly has res.headers['x-test'] set to "Hello", the other example on the other hand still has the key capitalised.
Headers returned from a mock function isn't lower cased, compare the two following examples.
The first one correctly has
res.headers['x-test']set to "Hello", the other example on the other hand still has the key capitalised.