From 40c962a0c6559fcbd4faa0ce7c77d656abd89f98 Mon Sep 17 00:00:00 2001 From: "August (Chris)" Date: Tue, 23 Apr 2019 15:17:48 -0700 Subject: [PATCH] Create testing area --- __tests__/wumpfetch-tests.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 __tests__/wumpfetch-tests.ts 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(); +})();