webrequest/test/test.browser.ts
2022-03-16 16:23:32 +01:00

17 lines
383 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as webrequest from '../ts/index.js';
tap.test('first test', async (tools) => {
const done = tools.defer();
const response = await new webrequest.WebRequest()
.request(['https://lossless.com'], {
method: 'GET',
})
.catch((e) => {
done.resolve();
});
await done.promise;
});
tap.start();