Skip to content

Commit 470ad9f

Browse files
committed
add link to reference implementation of view function fixes #54
1 parent 3096d81 commit 470ad9f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

todo-list.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ We will "cover" that below. For now, focus on rendering the DOM._
11241124

11251125
> If you get "stuck" trying to make the tests pass, first keep tring!
11261126
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)
11281128

11291129

11301130
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) {
12361236
.getAttribute("placeholder");
12371237
t.equal(placeholder, "What needs to be done?", "paceholder set on <input>");
12381238

1239-
// todo-count should display 0 items left (based on initial_model):
1239+
// todo-count should display "0 items left" (based on initial_model):
12401240
const left = document.getElementById('count').innerHTML;
12411241
t.equal(left, "<strong>0</strong> items left", "Todos remaining: " + left);
12421242

@@ -1255,12 +1255,19 @@ you will see something like this ("_Red_"):
12551255

12561256
#### `view` Function _Implementation_
12571257

1258+
You should have the knowledge & skill
1259+
to write the `view` function and make the test pass.
12581260

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)
12601264

12611265
When you run `npm test` you should see something like this:
12621266
![image](https://user-images.githubusercontent.com/194400/43782895-48496f22-9a58-11e8-9fde-dbb5554f43a0.png)
12631267

1268+
1269+
1270+
12641271
<!--
12651272
12661273
## What _Next_?

0 commit comments

Comments
 (0)