(mockData: Dictionary, pathName = 'special/mock')
| 39 | let serverAddress = 'http://localhost:'; |
| 40 | |
| 41 | async function getRequestListForMock(mockData: Dictionary, pathName = 'special/mock') { |
| 42 | const sources: Source[] = [1, 2, 3, 4].map((num) => { |
| 43 | return { |
| 44 | url: `${serverAddress}/${pathName}?a=${num}`, |
| 45 | payload: JSON.stringify(mockData), |
| 46 | method: 'POST', |
| 47 | headers: { 'Content-Type': 'application/json' }, |
| 48 | }; |
| 49 | }); |
| 50 | const requestList = await RequestList.open(null, sources); |
| 51 | return requestList; |
| 52 | } |
| 53 | |
| 54 | async function getRequestListForMirror() { |
| 55 | const sources = [ |
no test coverage detected
searching dependent graphs…