MCPcopy
hub / github.com/axios/axios / encode

Function encode

tests/unit/helpers/buildURL.test.js:75–78  ·  view source on GitHub ↗
(value, defaultEncode)

Source from the content-addressed store, hash-verified

73 expect(
74 buildURL('/foo', { foo: 'bar', baz: 'qux' }, {
75 encode(value, defaultEncode) {
76 capturedThis.push(this);
77 return defaultEncode(value);
78 },
79 })
80 ).toEqual('/foo?foo=bar&baz=qux');
81 expect(capturedThis).toHaveLength(4);

Callers 1

buildURL.test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected