test(js): add vitest
This commit is contained in:
parent
222cb1e557
commit
2c3503d7d0
7 changed files with 505 additions and 17 deletions
|
@ -118,7 +118,7 @@ export function httpRequest(
|
|||
init.body = JSON.stringify(json);
|
||||
}
|
||||
|
||||
let timer: number;
|
||||
let timer: ReturnType<typeof setTimeout>;
|
||||
if (!init.signal) {
|
||||
controller = createAbortController(controller);
|
||||
if (controller) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue