2020-07-08 02:15:14 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
2022-03-16 15:23:32 +00:00
|
|
|
import * as webrequest from '../ts/index.js';
|
2020-07-08 02:15:14 +00:00
|
|
|
|
2022-05-29 18:22:42 +00:00
|
|
|
tap.test('should run multiendpoint request', async (tools) => {
|
2023-02-12 16:54:00 +00:00
|
|
|
const response = await new webrequest.WebRequest().request('https://api.signup.software', {
|
|
|
|
method: 'GET',
|
|
|
|
});
|
2022-08-19 15:49:47 +00:00
|
|
|
console.log(JSON.stringify(await response.text()));
|
2020-07-08 02:15:14 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
tap.start();
|