-
Notifications
You must be signed in to change notification settings - Fork 308
/
fixtures.ts
128 lines (127 loc) · 3.84 KB
/
fixtures.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import nock from 'nock'
export const mockResponseSuccess = (): nock.Scope =>
nock('https://api.covidtracking.com/v1')
.get('/us/current.json')
.reply(
200,
() => [
{
date: 20210307,
states: 56,
positive: 28756489,
negative: 74582825,
pending: 11808,
hospitalizedCurrently: 40199,
hospitalizedCumulative: 776361,
inIcuCurrently: 8134,
inIcuCumulative: 45475,
onVentilatorCurrently: 2802,
onVentilatorCumulative: 4281,
dateChecked: '2021-03-07T24:00:00Z',
death: 515151,
hospitalized: 776361,
totalTestResults: 363825123,
lastModified: '2021-03-07T24:00:00Z',
recovered: null,
total: 0,
posNeg: 0,
deathIncrease: 842,
hospitalizedIncrease: 726,
negativeIncrease: 131835,
positiveIncrease: 41835,
totalTestResultsIncrease: 1170059,
hash: 'a80d0063822e251249fd9a44730c49cb23defd83',
},
{
date: 20210306,
states: 56,
positive: 28714654,
negative: 74450990,
pending: 11783,
hospitalizedCurrently: 41401,
hospitalizedCumulative: 775635,
inIcuCurrently: 8409,
inIcuCumulative: 45453,
onVentilatorCurrently: 2811,
onVentilatorCumulative: 4280,
dateChecked: '2021-03-06T24:00:00Z',
death: 514309,
hospitalized: 775635,
totalTestResults: 362655064,
lastModified: '2021-03-06T24:00:00Z',
recovered: null,
total: 0,
posNeg: 0,
deathIncrease: 1680,
hospitalizedIncrease: 503,
negativeIncrease: 143835,
positiveIncrease: 60015,
totalTestResultsIncrease: 1430992,
hash: 'dae5e558c24adb86686bbd58c08cce5f610b8bb0',
},
{
date: 20210305,
states: 56,
positive: 28654639,
negative: 74307155,
pending: 12213,
hospitalizedCurrently: 42541,
hospitalizedCumulative: 775132,
inIcuCurrently: 8634,
inIcuCumulative: 45373,
onVentilatorCurrently: 2889,
onVentilatorCumulative: 4275,
dateChecked: '2021-03-05T24:00:00Z',
death: 512629,
hospitalized: 775132,
totalTestResults: 361224072,
lastModified: '2021-03-05T24:00:00Z',
recovered: null,
total: 0,
posNeg: 0,
deathIncrease: 2221,
hospitalizedIncrease: 2781,
negativeIncrease: 271917,
positiveIncrease: 68787,
totalTestResultsIncrease: 1744417,
hash: '724844c01659d0103801c57c0f72bf8cc8ab025c',
},
{
date: 20210304,
states: 56,
positive: 28585852,
negative: 74035238,
pending: 12405,
hospitalizedCurrently: 44172,
hospitalizedCumulative: 772351,
inIcuCurrently: 8970,
inIcuCumulative: 45293,
onVentilatorCurrently: 2973,
onVentilatorCumulative: 4267,
dateChecked: '2021-03-04T24:00:00Z',
death: 510408,
hospitalized: 772351,
totalTestResults: 359479655,
lastModified: '2021-03-04T24:00:00Z',
recovered: null,
total: 0,
posNeg: 0,
deathIncrease: 1743,
hospitalizedIncrease: 1530,
negativeIncrease: 177957,
positiveIncrease: 65487,
totalTestResultsIncrease: 1590984,
hash: '5c549ad30f9abf48dc5de36d20fa707014be1ff3',
},
],
[
'Content-Type',
'application/json',
'Connection',
'close',
'Vary',
'Accept-Encoding',
'Vary',
'Origin',
],
)