Skip to content

Commit bc982e4

Browse files
committed
jest tests added
1 parent 70d37db commit bc982e4

21 files changed

+844
-59
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
src
2+
junk

.vscode/settings.json

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`constrcutor standings 1`] = `
4+
[
5+
{
6+
"points": 619,
7+
"position": 1,
8+
"team": "Red Bull Racing RBPT",
9+
},
10+
{
11+
"points": 454,
12+
"position": 2,
13+
"team": "Ferrari",
14+
},
15+
{
16+
"points": 387,
17+
"position": 3,
18+
"team": "Mercedes",
19+
},
20+
{
21+
"points": 143,
22+
"position": 4,
23+
"team": "Alpine Renault",
24+
},
25+
{
26+
"points": 130,
27+
"position": 5,
28+
"team": "McLaren Mercedes",
29+
},
30+
{
31+
"points": 52,
32+
"position": 6,
33+
"team": "Alfa Romeo Ferrari",
34+
},
35+
{
36+
"points": 45,
37+
"position": 7,
38+
"team": "Aston Martin Aramco Mercedes",
39+
},
40+
{
41+
"points": 34,
42+
"position": 8,
43+
"team": "Haas Ferrari",
44+
},
45+
{
46+
"points": 34,
47+
"position": 9,
48+
"team": "AlphaTauri RBPT",
49+
},
50+
{
51+
"points": 8,
52+
"position": 10,
53+
"team": "Williams Mercedes",
54+
},
55+
]
56+
`;
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`current driver lineup 1`] = `
4+
[
5+
{
6+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/M/MAXVER01_Max_Verstappen/maxver01.png.transform/2col/image.png",
7+
"name": "Max Verstappen",
8+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Netherlands.jpg.transform/2col/image.jpg",
9+
"points": 366,
10+
"rank": 1,
11+
"team": "Red Bull Racing",
12+
},
13+
{
14+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/S/SERPER01_Sergio_Perez/serper01.png.transform/2col/image.png",
15+
"name": "Sergio Perez",
16+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Mexico.jpg.transform/2col/image.jpg",
17+
"points": 253,
18+
"rank": 2,
19+
"team": "Red Bull Racing",
20+
},
21+
{
22+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/C/CHALEC01_Charles_Leclerc/chalec01.png.transform/2col/image.png",
23+
"name": "Charles Leclerc",
24+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Monaco.jpg.transform/2col/image.jpg",
25+
"points": 252,
26+
"rank": 3,
27+
"team": "Ferrari",
28+
},
29+
{
30+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/G/GEORUS01_George_Russell/georus01.png.transform/2col/image.png",
31+
"name": "George Russell",
32+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/United%20Kingdom.jpg.transform/2col/image.jpg",
33+
"points": 207,
34+
"rank": 4,
35+
"team": "Mercedes",
36+
},
37+
{
38+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/C/CARSAI01_Carlos_Sainz/carsai01.png.transform/2col/image.png",
39+
"name": "Carlos Sainz",
40+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Spain.jpg.transform/2col/image.jpg",
41+
"points": 202,
42+
"rank": 5,
43+
"team": "Ferrari",
44+
},
45+
{
46+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/L/LEWHAM01_Lewis_Hamilton/lewham01.png.transform/2col/image.png",
47+
"name": "Lewis Hamilton",
48+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/United%20Kingdom.jpg.transform/2col/image.jpg",
49+
"points": 180,
50+
"rank": 6,
51+
"team": "Mercedes",
52+
},
53+
{
54+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/L/LANNOR01_Lando_Norris/lannor01.png.transform/2col/image.png",
55+
"name": "Lando Norris",
56+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/United%20Kingdom.jpg.transform/2col/image.jpg",
57+
"points": 101,
58+
"rank": 7,
59+
"team": "McLaren",
60+
},
61+
{
62+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/E/ESTOCO01_Esteban_Ocon/estoco01.png.transform/2col/image.png",
63+
"name": "Esteban Ocon",
64+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/France.jpg.transform/2col/image.jpg",
65+
"points": 78,
66+
"rank": 8,
67+
"team": "Alpine",
68+
},
69+
{
70+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/F/FERALO01_Fernando_Alonso/feralo01.png.transform/2col/image.png",
71+
"name": "Fernando Alonso",
72+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Spain.jpg.transform/2col/image.jpg",
73+
"points": 65,
74+
"rank": 9,
75+
"team": "Alpine",
76+
},
77+
{
78+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/V/VALBOT01_Valtteri_Bottas/valbot01.png.transform/2col/image.png",
79+
"name": "Valtteri Bottas",
80+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Finland.jpg.transform/2col/image.jpg",
81+
"points": 46,
82+
"rank": 10,
83+
"team": "Alfa Romeo",
84+
},
85+
{
86+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/S/SEBVET01_Sebastian_Vettel/sebvet01.png.transform/2col/image.png",
87+
"name": "Sebastian Vettel",
88+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Germany.jpg.transform/2col/image.jpg",
89+
"points": 32,
90+
"rank": 11,
91+
"team": "Aston Martin",
92+
},
93+
{
94+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/D/DANRIC01_Daniel_Ricciardo/danric01.png.transform/2col/image.png",
95+
"name": "Daniel Ricciardo",
96+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Australia.jpg.transform/2col/image.jpg",
97+
"points": 29,
98+
"rank": 12,
99+
"team": "McLaren",
100+
},
101+
{
102+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/P/PIEGAS01_Pierre_Gasly/piegas01.png.transform/2col/image.png",
103+
"name": "Pierre Gasly",
104+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/France.jpg.transform/2col/image.jpg",
105+
"points": 23,
106+
"rank": 13,
107+
"team": "AlphaTauri",
108+
},
109+
{
110+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/K/KEVMAG01_Kevin_Magnussen/kevmag01.png.transform/2col/image.png",
111+
"name": "Kevin Magnussen",
112+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Denmark.jpg.transform/2col/image.jpg",
113+
"points": 22,
114+
"rank": 14,
115+
"team": "Haas F1 Team",
116+
},
117+
{
118+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/L/LANSTR01_Lance_Stroll/lanstr01.png.transform/2col/image.png",
119+
"name": "Lance Stroll",
120+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Canada.jpg.transform/2col/image.jpg",
121+
"points": 13,
122+
"rank": 15,
123+
"team": "Aston Martin",
124+
},
125+
{
126+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/M/MICSCH02_Mick_Schumacher/micsch02.png.transform/2col/image.png",
127+
"name": "Mick Schumacher",
128+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Germany.jpg.transform/2col/image.jpg",
129+
"points": 12,
130+
"rank": 16,
131+
"team": "Haas F1 Team",
132+
},
133+
{
134+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/Y/YUKTSU01_Yuki_Tsunoda/yuktsu01.png.transform/2col/image.png",
135+
"name": "Yuki Tsunoda",
136+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Japan.jpg.transform/2col/image.jpg",
137+
"points": 11,
138+
"rank": 17,
139+
"team": "AlphaTauri",
140+
},
141+
{
142+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/G/GUAZHO01_Guanyu_Zhou/guazho01.png.transform/2col/image.png",
143+
"name": "Guanyu Zhou",
144+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/China.jpg.transform/2col/image.jpg",
145+
"points": 6,
146+
"rank": 18,
147+
"team": "Alfa Romeo",
148+
},
149+
{
150+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/A/ALEALB01_Alexander_Albon/alealb01.png.transform/2col/image.png",
151+
"name": "Alexander Albon",
152+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Thailand.jpg.transform/2col/image.jpg",
153+
"points": 4,
154+
"rank": 19,
155+
"team": "Williams",
156+
},
157+
{
158+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/N/NICLAF01_Nicholas_Latifi/niclaf01.png.transform/2col/image.png",
159+
"name": "Nicholas Latifi",
160+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Canada.jpg.transform/2col/image.jpg",
161+
"points": 2,
162+
"rank": 20,
163+
"team": "Williams",
164+
},
165+
{
166+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/N/NYCDEV01_Nyck_De%20Vries/nycdev01.png.transform/2col/image.png",
167+
"name": "Nyck De Vries",
168+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Netherlands.jpg.transform/2col/image.jpg",
169+
"points": 2,
170+
"rank": 21,
171+
"team": "Williams",
172+
},
173+
{
174+
"driverImage": "https://www.formula1.com/content/dam/fom-website/drivers/N/NICHUL01_Nico_Hulkenberg/nichul01.png.transform/2col/image.png",
175+
"name": "Nico Hulkenberg",
176+
"nationalityImage": "https://www.formula1.com/content/dam/fom-website/flags/Germany.jpg.transform/2col/image.jpg",
177+
"points": 0,
178+
"rank": 22,
179+
"team": "Aston Martin",
180+
},
181+
]
182+
`;

0 commit comments

Comments
 (0)