From 25ddb34198685850a34b69c67cf91d72b51461da Mon Sep 17 00:00:00 2001 From: alexlee-dev Date: Sat, 24 Aug 2019 14:08:33 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20tests=20for=20ContractsDis?= =?UTF-8?q?play.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__tests__/__snapshots__/App.test.js.snap | 58 ++++++++++++++++++++ src/fixtures.js | 14 ++++- 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/__tests__/__snapshots__/App.test.js.snap b/src/__tests__/__snapshots__/App.test.js.snap index 9951797..64810fe 100644 --- a/src/__tests__/__snapshots__/App.test.js.snap +++ b/src/__tests__/__snapshots__/App.test.js.snap @@ -27,6 +27,64 @@ exports[` Should render the component. 1`] = ` 100 +
+

+ Contracts +

+
+ + Item Type + +
+ + Ore + +
+ + Space + +
+ + 1 + +
+ + Value + +
+ + 3 + +
+
diff --git a/src/fixtures.js b/src/fixtures.js index fcfd3d8..4690635 100644 --- a/src/fixtures.js +++ b/src/fixtures.js @@ -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: [ @@ -80,7 +88,7 @@ export const defaultState = { name: 'Test Planet 1' }, { - id: "1", + id: '1', isHomePlanet: false, location: 50, items: [ @@ -138,7 +146,7 @@ export const defaultState = { name: 'Test Planet 2' }, { - id: "2", + id: '2', isHomePlanet: false, location: 100, items: [