add new unit test, fix minor bugs

This commit is contained in:
ading2210 2024-03-20 02:34:40 -04:00
parent f8e55ea307
commit 1730e6d964
7 changed files with 30 additions and 2 deletions

View file

@ -1,4 +1,5 @@
async function test() {
let r = await libcurl.fetch("https://example.com/");
assert(r.status === 200, "wrong status");
await r.text();
}