Skip to content

Front-end testing and main.js script #88

@marisid

Description

@marisid
  • 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions