()
| 775 | // makes this shared — keeps every other cache test green. |
| 776 | it("keeps one adapter's cached resolutions out of another's", async () => { |
| 777 | const makeCounting = () => { |
| 778 | const resolved: string[] = []; |
| 779 | const hostedFetch = makeHostedFetch({ |
| 780 | fetch: async () => new Response("ok"), |
| 781 | resolveHostname: async (hostname) => { |
| 782 | resolved.push(hostname); |
| 783 | return [{ address: "93.184.216.34" }]; |
| 784 | }, |
| 785 | }); |
| 786 | return { hostedFetch, resolved }; |
| 787 | }; |
| 788 | |
| 789 | const first = makeCounting(); |
| 790 | const second = makeCounting(); |
no test coverage detected