MCPcopy Create free account
hub / github.com/ded/reqwest / methodMatch

Function methodMatch

tests/tests.js:737–739  ·  view source on GitHub ↗
(resp, method)

Source from the content-addressed store, hash-verified

735
736 sink('Standard vs compat mode', function (test, ok) {
737 function methodMatch(resp, method) {
738 return resp && resp.method === method
739 }
740 function headerMatch(resp, key, expected) {
741 return resp && resp.headers && resp.headers[key] === expected
742 }

Callers 1

tests.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected