Searched refs:mockDispatch (Results 1 – 3 of 3) sorted by relevance
70 function matchHeaders (mockDispatch, headers) { argument71 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 }) { argument111 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 …]
19 constructor (mockDispatch) { argument20 this[kMockDispatch] = mockDispatch
13 constructor(mockDispatch: MockInterceptor.MockDispatch<TData>);