Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front-end testing and main.js script #88

Open
marisid opened this issue Nov 14, 2016 · 0 comments
Open

Front-end testing and main.js script #88

marisid opened this issue Nov 14, 2016 · 0 comments

Comments

@marisid
Copy link

marisid commented Nov 14, 2016

  • 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant