vanilla-todo icon indicating copy to clipboard operation
vanilla-todo copied to clipboard

Write tests

Open morris opened this issue 5 years ago • 0 comments

I'm thinking jsdom should be enough to write (unit) tests:

  • Create a test document with the scripts to test
  • Mount an element with some functions
  • Assert it's properly mounted
  • Send events or call public interface
  • Assert changes
  • Repeat

Headless testing is the same as with any framework/toolchain (no need to implement tests for demonstration).

morris avatar Oct 29 '20 11:10 morris