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
If we use https://github.com/rstacruz/jsdom-global in our tests, we should not need an init function.
I'm going to experiment with updating the counter-reset tests and see if I can remove the init function completely.
The text was updated successfully, but these errors were encountered:
While re-reading the code (and preparing for "elmish") It occurred to me that we might be over-complicating things ...
Do we need an
init
function to initialise the DOM in:learn-elm-architecture-in-javascript/examples/counter-reset/counter.js
Lines 69 to 85 in 814467e
e.g:
learn-elm-architecture-in-javascript/test/counter-reset.test.js
Line 10 in 075c4c4
If we use https://github.com/rstacruz/jsdom-global in our tests, we should not need an
init
function.I'm going to experiment with updating the
counter-reset
tests and see if I can remove theinit
function completely.The text was updated successfully, but these errors were encountered: