From 771bc4e7a620ee13a641a5e8bbb913d1364b36b4 Mon Sep 17 00:00:00 2001 From: Josh McCall Date: Mon, 27 Jun 2016 08:56:33 +0000 Subject: [PATCH 1/2] VendingMachineKata:Display --- src/components/vending-machine.jsx | 8 +++++++- test/components/vending-machine_spec.jsx | 14 +++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/vending-machine.jsx b/src/components/vending-machine.jsx index 58e5925..f48b179 100644 --- a/src/components/vending-machine.jsx +++ b/src/components/vending-machine.jsx @@ -28,7 +28,13 @@ export default React.createClass({ style: coinContainerStyle} } = coinContainer; return (
-

Display: {defaultMessage}

+
+

Display: {defaultMessage}

+
Balance: ${balance}
+
Selected Product: {selectedProduct}
+
CoinReturn: ${coinReturn}
+
Vend: {vend}
+
{validCoins.map((vc,i) =>{ return