Skip to content

Commit

Permalink
Fix up Chronicles tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HSZemi committed Dec 1, 2024
1 parent 475f3a5 commit f500720
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 6 deletions.
150 changes: 150 additions & 0 deletions src/__tests__/components/__snapshots__/CivPanel.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,81 @@ exports[`BAN CivPanels render correctly 46`] = `
/>
`;

exports[`BAN CivPanels render correctly 47`] = `
<DraftOptionPanel
active={false}
draftOption={
Civilisation {
"category": "default",
"gameVersion": 12,
"i18nPrefix": "civs.",
"id": "Achaemenids",
"imageUrls": Object {
"animated_left": "/images/units-animated/achaemenids-left.apng",
"animated_right": "/images/units-animated/achaemenids-right.apng",
"emblem": "/images/civemblems/achaemenids.png",
"unit": "/images/civs/achaemenids.png",
},
"name": "Achaemenids",
}
}
draftOptionPanelType="ban"
iconStyle="units"
nextAction={0}
t={[Function]}
/>
`;

exports[`BAN CivPanels render correctly 48`] = `
<DraftOptionPanel
active={false}
draftOption={
Civilisation {
"category": "default",
"gameVersion": 12,
"i18nPrefix": "civs.",
"id": "Athenians",
"imageUrls": Object {
"animated_left": "/images/units-animated/athenians-left.apng",
"animated_right": "/images/units-animated/athenians-right.apng",
"emblem": "/images/civemblems/athenians.png",
"unit": "/images/civs/athenians.png",
},
"name": "Athenians",
}
}
draftOptionPanelType="ban"
iconStyle="units"
nextAction={0}
t={[Function]}
/>
`;

exports[`BAN CivPanels render correctly 49`] = `
<DraftOptionPanel
active={false}
draftOption={
Civilisation {
"category": "default",
"gameVersion": 12,
"i18nPrefix": "civs.",
"id": "Spartans",
"imageUrls": Object {
"animated_left": "/images/units-animated/spartans-left.apng",
"animated_right": "/images/units-animated/spartans-right.apng",
"emblem": "/images/civemblems/spartans.png",
"unit": "/images/civs/spartans.png",
},
"name": "Spartans",
}
}
draftOptionPanelType="ban"
iconStyle="units"
nextAction={0}
t={[Function]}
/>
`;

exports[`PICK CivPanels render correctly 1`] = `
<DraftOptionPanel
active={false}
Expand Down Expand Up @@ -2300,6 +2375,81 @@ exports[`PICK CivPanels render correctly 46`] = `
/>
`;

exports[`PICK CivPanels render correctly 47`] = `
<DraftOptionPanel
active={false}
draftOption={
Civilisation {
"category": "default",
"gameVersion": 12,
"i18nPrefix": "civs.",
"id": "Achaemenids",
"imageUrls": Object {
"animated_left": "/images/units-animated/achaemenids-left.apng",
"animated_right": "/images/units-animated/achaemenids-right.apng",
"emblem": "/images/civemblems/achaemenids.png",
"unit": "/images/civs/achaemenids.png",
},
"name": "Achaemenids",
}
}
draftOptionPanelType="pick"
iconStyle="units"
nextAction={0}
t={[Function]}
/>
`;

exports[`PICK CivPanels render correctly 48`] = `
<DraftOptionPanel
active={false}
draftOption={
Civilisation {
"category": "default",
"gameVersion": 12,
"i18nPrefix": "civs.",
"id": "Athenians",
"imageUrls": Object {
"animated_left": "/images/units-animated/athenians-left.apng",
"animated_right": "/images/units-animated/athenians-right.apng",
"emblem": "/images/civemblems/athenians.png",
"unit": "/images/civs/athenians.png",
},
"name": "Athenians",
}
}
draftOptionPanelType="pick"
iconStyle="units"
nextAction={0}
t={[Function]}
/>
`;

exports[`PICK CivPanels render correctly 49`] = `
<DraftOptionPanel
active={false}
draftOption={
Civilisation {
"category": "default",
"gameVersion": 12,
"i18nPrefix": "civs.",
"id": "Spartans",
"imageUrls": Object {
"animated_left": "/images/units-animated/spartans-left.apng",
"animated_right": "/images/units-animated/spartans-right.apng",
"emblem": "/images/civemblems/spartans.png",
"unit": "/images/civs/spartans.png",
},
"name": "Spartans",
}
}
draftOptionPanelType="pick"
iconStyle="units"
nextAction={0}
t={[Function]}
/>
`;

exports[`empty BAN CivPanel renders correctly 1`] = `
<DraftOptionPanel
active={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -604,14 +604,14 @@ Array [
"category": "default",
"gameVersion": 12,
"i18nPrefix": "civs.",
"id": "Achemenids",
"id": "Achaemenids",
"imageUrls": Object {
"animated_left": "/images/units-animated/achemenids-left.apng",
"animated_right": "/images/units-animated/achemenids-right.apng",
"emblem": "/images/civemblems/achemenids.png",
"unit": "/images/civs/achemenids.png",
"animated_left": "/images/units-animated/achaemenids-left.apng",
"animated_right": "/images/units-animated/achaemenids-right.apng",
"emblem": "/images/civemblems/achaemenids.png",
"unit": "/images/civs/achaemenids.png",
},
"name": "Achemenids",
"name": "Achaemenids",
},
Civilisation {
"category": "default",
Expand Down

0 comments on commit f500720

Please sign in to comment.