@@ -1124,7 +1124,7 @@ We will "cover" that below. For now, focus on rendering the DOM._
1124
1124
1125
1125
> If you get "stuck" trying to make the tests pass, first keep tring!
1126
1126
Then "as a friend" and finally, consult the _ reference_ implementation in:
1127
- [ ** ` todo-app.js ` ** ] ( )
1127
+ [ ** ` todo-app.js ` ** ] ( https://github.com/dwyl/learn-elm-architecture-in-javascript/pull/45/commits/68e2afa3bd95c46da7df559007d90dedcbae500f#diff-6be3e16fe7cfb4c00788d4d587374afdR103 )
1128
1128
1129
1129
1130
1130
For good measure, we add a _ second_ test to check our "pluarisation":
@@ -1236,7 +1236,7 @@ test.only('view renders the whole todo app using "partials"', function (t) {
1236
1236
.getAttribute (" placeholder" );
1237
1237
t .equal (placeholder, " What needs to be done?" , " paceholder set on <input>" );
1238
1238
1239
- // todo-count should display 0 items left (based on initial_model):
1239
+ // todo-count should display " 0 items left" (based on initial_model):
1240
1240
const left = document .getElementById (' count' ).innerHTML ;
1241
1241
t .equal (left, " <strong>0</strong> items left" , " Todos remaining: " + left);
1242
1242
@@ -1255,12 +1255,19 @@ you will see something like this ("_Red_"):
1255
1255
1256
1256
#### ` view ` Function _ Implementation_
1257
1257
1258
+ You should have the knowledge & skill
1259
+ to write the ` view ` function and make the test pass.
1258
1260
1259
-
1261
+ > If you get "stuck" trying to make the tests pass, first keep tring!
1262
+ Then "as a friend" and finally, consult the _ reference_ implementation in:
1263
+ [ ** ` todo-app.js ` ** ] ( https://github.com/dwyl/learn-elm-architecture-in-javascript/pull/45/commits/3096d81a777392c07a132136db496224871ff4c9#diff-6be3e16fe7cfb4c00788d4d587374afdR145 )
1260
1264
1261
1265
When you run ` npm test ` you should see something like this:
1262
1266
![ image] ( https://user-images.githubusercontent.com/194400/43782895-48496f22-9a58-11e8-9fde-dbb5554f43a0.png )
1263
1267
1268
+
1269
+
1270
+
1264
1271
<!--
1265
1272
1266
1273
## What _Next_?
0 commit comments