Home
last modified time | relevance | path

Searched refs:mockDispatch (Results 1 – 3 of 3) sorted by relevance

/third_party/node/deps/undici/src/lib/mock/
Dmock-utils.js70 function matchHeaders (mockDispatch, headers) { argument
71 if (typeof mockDispatch.headers === 'function') {
75 return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})
77 if (typeof mockDispatch.headers === 'undefined') {
80 if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {
84 for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {
110 function matchKey (mockDispatch, { path, method, body, headers }) { argument
111 const pathMatch = matchValue(mockDispatch.path, path)
112 const methodMatch = matchValue(mockDispatch.method, method)
113 …const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) :…
[all …]
Dmock-interceptor.js19 constructor (mockDispatch) { argument
20 this[kMockDispatch] = mockDispatch
/third_party/node/deps/undici/src/types/
Dmock-interceptor.d.ts13 constructor(mockDispatch: MockInterceptor.MockDispatch<TData>);