Home
last modified time | relevance | path

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

/third_party/node/deps/undici/src/lib/mock/
Dmock-utils.js128 function getMockDispatch (mockDispatches, key) { argument
133 …let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) =…
159 function addMockDispatch (mockDispatches, key, data) { argument
163 mockDispatches.push(newMockDispatch)
167 function deleteMockDispatch (mockDispatches, key) { argument
168 const index = mockDispatches.findIndex(dispatch => {
175 mockDispatches.splice(index, 1)
253 function handleReply (mockDispatches, _data = data) { argument
269 body.then((newData) => handleReply(mockDispatches, newData))
281 deleteMockDispatch(mockDispatches, key)
Dmock-interceptor.js60 constructor (opts, mockDispatches) { argument
87 this[kDispatches] = mockDispatches
/third_party/node/deps/undici/src/types/
Dmock-interceptor.d.ts24 constructor(options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]);