Searched refs:mockDispatches (Results 1 – 3 of 3) sorted by relevance
/third_party/node/deps/undici/src/lib/mock/ |
D | mock-utils.js | 128 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)
|
D | mock-interceptor.js | 60 constructor (opts, mockDispatches) { argument 87 this[kDispatches] = mockDispatches
|
/third_party/node/deps/undici/src/types/ |
D | mock-interceptor.d.ts | 24 constructor(options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]);
|