mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-07-27 02:20:53 +02:00
Create testing area
This commit is contained in:
14
__tests__/wumpfetch-tests.ts
Normal file
14
__tests__/wumpfetch-tests.ts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import w from '../index';
|
||||||
|
|
||||||
|
interface Yeetus
|
||||||
|
{
|
||||||
|
yes: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
(async() => {
|
||||||
|
const res = await w('https://myurl.org', { method: 'GET' }).send();
|
||||||
|
const res1 = await w('https://myurl.org', { method: 'GET', chaining: false });
|
||||||
|
|
||||||
|
const d = res.json<Yeetus>();
|
||||||
|
const d1 = res.json();
|
||||||
|
})();
|
||||||
Reference in New Issue
Block a user