fix(core): update

This commit is contained in:
2022-08-19 17:49:47 +02:00
parent 089bb9282f
commit 0f1240d0db
3 changed files with 26 additions and 12 deletions

View File

@ -2,15 +2,11 @@ import { expect, tap } from '@pushrocks/tapbundle';
import * as webrequest from '../ts/index.js';
tap.test('should run multiendpoint request', async (tools) => {
const done = tools.defer();
const response = await new webrequest.WebRequest()
.requestMultiEndpoint(['https://lossless.com'], {
.request('https://api.signup.software', {
method: 'GET',
})
.catch((e) => {
done.resolve();
});
await done.promise;
console.log(JSON.stringify(await response.text()));
});
tap.start();