|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
3 | | -exports[`apiRequest should make a request with the correct parameters 1`] = ` |
| 3 | +exports[`apiRequestAuth should make an authenticated request with the correct parameters 1`] = ` |
4 | 4 | { |
5 | 5 | "Accept": "application/json", |
| 6 | + "Authorization": "token yourAuthToken", |
6 | 7 | "Cache-Control": "no-cache", |
7 | 8 | "Content-Type": "application/json", |
8 | 9 | } |
9 | 10 | `; |
10 | 11 |
|
11 | | -exports[`apiRequest should make a request with the correct parameters and default data 1`] = ` |
| 12 | +exports[`apiRequestAuth should make an authenticated request with the correct parameters and default data 1`] = ` |
12 | 13 | { |
13 | 14 | "Accept": "application/json", |
| 15 | + "Authorization": "token yourAuthToken", |
14 | 16 | "Cache-Control": "no-cache", |
15 | 17 | "Content-Type": "application/json", |
16 | 18 | } |
17 | 19 | `; |
18 | 20 |
|
19 | | -exports[`apiRequestAuth should make an authenticated request with the correct parameters 1`] = ` |
| 21 | +exports[`utils/api-requests.ts should make a request with the correct parameters 1`] = ` |
20 | 22 | { |
21 | 23 | "Accept": "application/json", |
22 | | - "Authorization": "token yourAuthToken", |
23 | 24 | "Cache-Control": "no-cache", |
24 | 25 | "Content-Type": "application/json", |
25 | 26 | } |
26 | 27 | `; |
27 | 28 |
|
28 | | -exports[`apiRequestAuth should make an authenticated request with the correct parameters and default data 1`] = ` |
| 29 | +exports[`utils/api-requests.ts should make a request with the correct parameters and default data 1`] = ` |
29 | 30 | { |
30 | 31 | "Accept": "application/json", |
31 | | - "Authorization": "token yourAuthToken", |
32 | 32 | "Cache-Control": "no-cache", |
33 | 33 | "Content-Type": "application/json", |
34 | 34 | } |
|
0 commit comments