mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
add unit tests
This commit is contained in:
parent
b071019761
commit
2d98b82ee3
9 changed files with 147 additions and 2 deletions
7
client/tests/scripts/fetch_multiple.js
Normal file
7
client/tests/scripts/fetch_multiple.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
async function test() {
|
||||
await libcurl.fetch("https://example.com/");
|
||||
for (let i=0; i<20; i++) {
|
||||
let r = await libcurl.fetch("https://example.com/");
|
||||
assert(r.status === 200, "wrong status");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue