forked from Hypixel-API-Reborn/reborn-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.setup.ts
31 lines (30 loc) · 855 Bytes
/
vitest.setup.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { config } from 'dotenv';
config();
if (1 > (process.env.HYPIXEL_KEY || '').length) throw new Error('No API Key specified!');
export const defaultRequestData = {
ok: true,
status: 200,
json: () => Promise.resolve({ success: true }),
headers: new Headers(),
redirected: false,
statusText: '',
type: 'basic',
url: '',
clone: function (): Response {
throw new Error('Function not implemented.');
},
body: null,
bodyUsed: false,
arrayBuffer: function (): Promise<ArrayBuffer> {
throw new Error('Function not implemented.');
},
blob: function (): Promise<Blob> {
throw new Error('Function not implemented.');
},
formData: function (): Promise<FormData> {
throw new Error('Function not implemented.');
},
text: function (): Promise<string> {
throw new Error('Function not implemented.');
}
};