Closed Cretezy closed 1 year ago
Thank you for raising the issue and providing an implementation 😃
Currently the library doesn't do anything at all really with the default function mocks, just that they exist. Although I can see how this could cause problems for people and might be unexpected behaviour.
I will start working through the default function mocks so they behave more as would be expected and look to release it as a new major version soon 👍
header
has the following type:When passing
headers
to this library,header
should be mocked to return the header. It should also be case-insensitive.Here's the implementation I used: