(url)
| 8 | const zip = new JSZip() |
| 9 | |
| 10 | const fetchImage = (url) => { |
| 11 | return fetch(url) |
| 12 | .then((response) => response.blob()) |
| 13 | .then((blob) => { |
| 14 | const fileName = url.split("/").pop().split("?")[0] |
| 15 | return { blob, fileName } |
| 16 | }) |
| 17 | } |
| 18 | |
| 19 | Promise.all(imageUrls.map(fetchImage)) |
| 20 | .then((results) => { |
nothing calls this directly
no outgoing calls
no test coverage detected