import fs from "fs";
const urls = ["https://example.com", "http://example.com"];
for (let url of urls) {
const response = await fetch(url);
const text = await response.text();
if (
fs.readFileSync(
import.meta.path.substring(0, import.meta.path.lastIndexOf("/")) +
"/fetch.js.txt",
"utf8"
) !== text
) {
throw new Error("Expected fetch.js.txt to match snapshot");
}
}
' rowspan='2'>
index : bun | |
Unnamed repository; edit this file 'description' to name the repository. | |
Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
of only object)
|
|
|
|
|
|
|
|
|