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
I know we've discussed how to test the DOM several times and whether testing the front-end is like testing the core functionality (which you can easily check by testing the app manually) but I would suggest adding a couple of tests to make sure that your functions are called properly (hence testing your own script functionality) An example I can think of would be to test whether the results are cleared after you have selected one of the suggested words (testing the setTimeout function you have attached in the ul event listener).
You could wrap the main.js into a function not to expose variables and functions globally (although you don't test this but to protect your code accessibility)
The text was updated successfully, but these errors were encountered:
setTimeout
function you have attached in theul
event listener).The text was updated successfully, but these errors were encountered: