You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be enhanced by showing people a fullindex.html as a "Check Point"
so people know where the function and test "goes" in the file.
e.g:
<html><head><metahttp-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Vending Machine Change Calculator TDD</title><linkrel="stylesheet" href="https://code.jquery.com/qunit/qunit-1.18.0.css"><linkrel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"></head><body><divid='main' style='padding: 2em;'><h1>Vending Machine Change Calculator</h1><h2>Calculate the Change for a Given Price and Cash Received</h2></div><divid="qunit"></div><divid="qunit-fixture"></div><scriptsrc="https://code.jquery.com/qunit/qunit-1.18.0.js"></script><script>// your solution will go here!</script><script>test('getChange(1,1) should equal [] - an empty array',function(assert){varresult=getChange(1,1);//no change/coins just an empty arrayvarexpected=[];assert.deepEqual(result,expected);});// use deepEqual for arrays see: https://api.qunitjs.com/deepEqual/</script></body></html>
The text was updated successfully, but these errors were encountered:
I was just sitting with someone totally
new
to JS TDD doing this tutorial and they felt the instructions were unclear just before the first "Watch it Fail" stage:https://github.com/dwyl/learn-tdd/tree/bcbdc58a41faec5480fb5cbec96a0ca587a3c2e9#watch-it-fail
This could be enhanced by showing people a full
index.html
as a "Check Point"so people know where the function and test "goes" in the file.
e.g:
The text was updated successfully, but these errors were encountered: