From 0fa2c27bff2a7eb57d58f8c666170171df6c5c16 Mon Sep 17 00:00:00 2001 From: nelsonic Date: Sun, 30 Jul 2017 21:04:53 +0100 Subject: [PATCH] adds "Check Point" of code at first "watch it fail" section see: https://github.com/dwyl/learn-tdd/issues/100 --- README.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a4ab8a3..0e6f3b2 100644 --- a/README.md +++ b/README.md @@ -327,9 +327,46 @@ test('getChange(1,1) should equal [] - an empty array', function(assert) { We use QUnit's `deepEqual` (_assert_) method to check that all the _elements_ in the two arrays are _**identical**_. see: https://api.qunitjs.com/deepEqual/ +At this point, your `index.html` file should look like this: + +```html + + + + Vending Machine Change Calculator TDD + + + + +
+

Vending Machine Change Calculator

+

Calculate the Change for a Given Price and Cash Received

+
+ +
+
+ + + + + + + +``` + + #### Watch it _Fail_ -Back in your browser window, refresh the browser and watch it *fail*: +Back in your browser window, _refresh_ the browser and watch it *fail*: ![first failing test](http://i.imgur.com/4fuumU1.png)