Skip to content

Commit f500720

Browse files
committed
Fix up Chronicles tests
1 parent 475f3a5 commit f500720

File tree

2 files changed

+156
-6
lines changed

2 files changed

+156
-6
lines changed

src/__tests__/components/__snapshots__/CivPanel.test.tsx.snap

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,81 @@ exports[`BAN CivPanels render correctly 46`] = `
11501150
/>
11511151
`;
11521152

1153+
exports[`BAN CivPanels render correctly 47`] = `
1154+
<DraftOptionPanel
1155+
active={false}
1156+
draftOption={
1157+
Civilisation {
1158+
"category": "default",
1159+
"gameVersion": 12,
1160+
"i18nPrefix": "civs.",
1161+
"id": "Achaemenids",
1162+
"imageUrls": Object {
1163+
"animated_left": "/images/units-animated/achaemenids-left.apng",
1164+
"animated_right": "/images/units-animated/achaemenids-right.apng",
1165+
"emblem": "/images/civemblems/achaemenids.png",
1166+
"unit": "/images/civs/achaemenids.png",
1167+
},
1168+
"name": "Achaemenids",
1169+
}
1170+
}
1171+
draftOptionPanelType="ban"
1172+
iconStyle="units"
1173+
nextAction={0}
1174+
t={[Function]}
1175+
/>
1176+
`;
1177+
1178+
exports[`BAN CivPanels render correctly 48`] = `
1179+
<DraftOptionPanel
1180+
active={false}
1181+
draftOption={
1182+
Civilisation {
1183+
"category": "default",
1184+
"gameVersion": 12,
1185+
"i18nPrefix": "civs.",
1186+
"id": "Athenians",
1187+
"imageUrls": Object {
1188+
"animated_left": "/images/units-animated/athenians-left.apng",
1189+
"animated_right": "/images/units-animated/athenians-right.apng",
1190+
"emblem": "/images/civemblems/athenians.png",
1191+
"unit": "/images/civs/athenians.png",
1192+
},
1193+
"name": "Athenians",
1194+
}
1195+
}
1196+
draftOptionPanelType="ban"
1197+
iconStyle="units"
1198+
nextAction={0}
1199+
t={[Function]}
1200+
/>
1201+
`;
1202+
1203+
exports[`BAN CivPanels render correctly 49`] = `
1204+
<DraftOptionPanel
1205+
active={false}
1206+
draftOption={
1207+
Civilisation {
1208+
"category": "default",
1209+
"gameVersion": 12,
1210+
"i18nPrefix": "civs.",
1211+
"id": "Spartans",
1212+
"imageUrls": Object {
1213+
"animated_left": "/images/units-animated/spartans-left.apng",
1214+
"animated_right": "/images/units-animated/spartans-right.apng",
1215+
"emblem": "/images/civemblems/spartans.png",
1216+
"unit": "/images/civs/spartans.png",
1217+
},
1218+
"name": "Spartans",
1219+
}
1220+
}
1221+
draftOptionPanelType="ban"
1222+
iconStyle="units"
1223+
nextAction={0}
1224+
t={[Function]}
1225+
/>
1226+
`;
1227+
11531228
exports[`PICK CivPanels render correctly 1`] = `
11541229
<DraftOptionPanel
11551230
active={false}
@@ -2300,6 +2375,81 @@ exports[`PICK CivPanels render correctly 46`] = `
23002375
/>
23012376
`;
23022377

2378+
exports[`PICK CivPanels render correctly 47`] = `
2379+
<DraftOptionPanel
2380+
active={false}
2381+
draftOption={
2382+
Civilisation {
2383+
"category": "default",
2384+
"gameVersion": 12,
2385+
"i18nPrefix": "civs.",
2386+
"id": "Achaemenids",
2387+
"imageUrls": Object {
2388+
"animated_left": "/images/units-animated/achaemenids-left.apng",
2389+
"animated_right": "/images/units-animated/achaemenids-right.apng",
2390+
"emblem": "/images/civemblems/achaemenids.png",
2391+
"unit": "/images/civs/achaemenids.png",
2392+
},
2393+
"name": "Achaemenids",
2394+
}
2395+
}
2396+
draftOptionPanelType="pick"
2397+
iconStyle="units"
2398+
nextAction={0}
2399+
t={[Function]}
2400+
/>
2401+
`;
2402+
2403+
exports[`PICK CivPanels render correctly 48`] = `
2404+
<DraftOptionPanel
2405+
active={false}
2406+
draftOption={
2407+
Civilisation {
2408+
"category": "default",
2409+
"gameVersion": 12,
2410+
"i18nPrefix": "civs.",
2411+
"id": "Athenians",
2412+
"imageUrls": Object {
2413+
"animated_left": "/images/units-animated/athenians-left.apng",
2414+
"animated_right": "/images/units-animated/athenians-right.apng",
2415+
"emblem": "/images/civemblems/athenians.png",
2416+
"unit": "/images/civs/athenians.png",
2417+
},
2418+
"name": "Athenians",
2419+
}
2420+
}
2421+
draftOptionPanelType="pick"
2422+
iconStyle="units"
2423+
nextAction={0}
2424+
t={[Function]}
2425+
/>
2426+
`;
2427+
2428+
exports[`PICK CivPanels render correctly 49`] = `
2429+
<DraftOptionPanel
2430+
active={false}
2431+
draftOption={
2432+
Civilisation {
2433+
"category": "default",
2434+
"gameVersion": 12,
2435+
"i18nPrefix": "civs.",
2436+
"id": "Spartans",
2437+
"imageUrls": Object {
2438+
"animated_left": "/images/units-animated/spartans-left.apng",
2439+
"animated_right": "/images/units-animated/spartans-right.apng",
2440+
"emblem": "/images/civemblems/spartans.png",
2441+
"unit": "/images/civs/spartans.png",
2442+
},
2443+
"name": "Spartans",
2444+
}
2445+
}
2446+
draftOptionPanelType="pick"
2447+
iconStyle="units"
2448+
nextAction={0}
2449+
t={[Function]}
2450+
/>
2451+
`;
2452+
23032453
exports[`empty BAN CivPanel renders correctly 1`] = `
23042454
<DraftOptionPanel
23052455
active={false}

src/__tests__/models/__snapshots__/CivilisationEncoder.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -604,14 +604,14 @@ Array [
604604
"category": "default",
605605
"gameVersion": 12,
606606
"i18nPrefix": "civs.",
607-
"id": "Achemenids",
607+
"id": "Achaemenids",
608608
"imageUrls": Object {
609-
"animated_left": "/images/units-animated/achemenids-left.apng",
610-
"animated_right": "/images/units-animated/achemenids-right.apng",
611-
"emblem": "/images/civemblems/achemenids.png",
612-
"unit": "/images/civs/achemenids.png",
609+
"animated_left": "/images/units-animated/achaemenids-left.apng",
610+
"animated_right": "/images/units-animated/achaemenids-right.apng",
611+
"emblem": "/images/civemblems/achaemenids.png",
612+
"unit": "/images/civs/achaemenids.png",
613613
},
614-
"name": "Achemenids",
614+
"name": "Achaemenids",
615615
},
616616
Civilisation {
617617
"category": "default",

0 commit comments

Comments
 (0)