knee-cola / jest-mock-axios

Axios mock for Jest
252 stars 42 forks source link

Ignore case when comparing HTTP Method #57

Closed Chris-Thompson-bnsf closed 4 years ago

Chris-Thompson-bnsf commented 4 years ago

Case for HTTP method shouldn't matter when finding a request. It is a gotcha that can lead to a frustrating debugging experience, even when using typescript, because mockResponseFor doesn't constrain the method property to only lowercase strings, so using POST for example will fail unexpectedly.

kingjan1999 commented 4 years ago

Great, thank you!