diff --git a/__tests__/wumpfetch-tests.ts b/__tests__/wumpfetch-tests.ts new file mode 100644 index 0000000..667ded2 --- /dev/null +++ b/__tests__/wumpfetch-tests.ts @@ -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(); + const d1 = res.json(); +})();