Skip to content

Commit

Permalink
✅ Update tests for ContractsDisplay.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlee-dev committed Aug 24, 2019
1 parent d3be9ee commit 25ddb34
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 3 deletions.
58 changes: 58 additions & 0 deletions src/__tests__/__snapshots__/App.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,64 @@ exports[`<App /> Should render the <App /> component. 1`] = `
100
</span>
</div>
<div
class="StyledBox-sc-13pk1d4-0 IRSNj"
>
<h3
class="StyledHeading-sc-1rdh4aw-0 ftOecI"
>
Contracts
</h3>
<div
class="StyledBox-sc-13pk1d4-0 ffeAql"
>
<span
class="StyledText-sc-1sadyjn-0 bnqisW"
>
Item Type
</span>
<div
class="StyledBox__StyledBoxGap-sc-13pk1d4-1 iChEkS"
/>
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
Ore
</span>
<div
class="StyledBox__StyledBoxGap-sc-13pk1d4-1 iChEkS"
/>
<span
class="StyledText-sc-1sadyjn-0 bnqisW"
>
Space
</span>
<div
class="StyledBox__StyledBoxGap-sc-13pk1d4-1 iChEkS"
/>
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
1
</span>
<div
class="StyledBox__StyledBoxGap-sc-13pk1d4-1 iChEkS"
/>
<span
class="StyledText-sc-1sadyjn-0 bnqisW"
>
Value
</span>
<div
class="StyledBox__StyledBoxGap-sc-13pk1d4-1 iChEkS"
/>
<span
class="StyledText-sc-1sadyjn-0 fWSbXS"
>
3
</span>
</div>
</div>
<div
class="StyledBox-sc-13pk1d4-0 dfMVfp"
>
Expand Down
14 changes: 11 additions & 3 deletions src/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ export const defaultState = {
cash: 100
},
world: {
contracts: [
{
id: '0',
itemType: 'Ore',
space: 1,
value: 3
}
],
isTimerRunning: false,
planets: [
{
id: "0",
id: '0',
isHomePlanet: true,
location: 0,
items: [
Expand Down Expand Up @@ -80,7 +88,7 @@ export const defaultState = {
name: 'Test Planet 1'
},
{
id: "1",
id: '1',
isHomePlanet: false,
location: 50,
items: [
Expand Down Expand Up @@ -138,7 +146,7 @@ export const defaultState = {
name: 'Test Planet 2'
},
{
id: "2",
id: '2',
isHomePlanet: false,
location: 100,
items: [
Expand Down

0 comments on commit 25ddb34

Please sign in to comment.