add unit tests

This commit is contained in:
ading2210 2024-01-31 21:38:57 +00:00
parent b071019761
commit 2d98b82ee3
9 changed files with 147 additions and 2 deletions

View file

@ -0,0 +1,8 @@
async function test() {
await libcurl.fetch("https://www.example.com/");
let promises = [];
for (let i=0; i<10; i++) {
promises.push(libcurl.fetch("https://www.example.com/"))
}
await Promise.all(promises);
}