import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
export let badArgs1 = (async () => {
console.log(
await fetchText(
"https://api.val.town/v1/run/stevekrouse.id",
{
method: "POST",
body: JSON.stringify("hi"),
},
),
);
console.log(
await fetchText(
"https://api.val.town/v1/run/stevekrouse.id",
{
method: "POST",
body: JSON.stringify({
args: "hi",
}),
},
),
);
console.log(
await fetchText(
"https://api.val.town/v1/run/stevekrouse.id",
{
method: "POST",
body: JSON.stringify({
args: ["hi"],
}),
},
),
);
})();