Skip to content

Ops/unit test js

richa requested to merge ops/unit-test-js into cherry

https://trello.com/c/GKHqmYpP/202-implement-unit-testing-for-all-fe-js

Components being tested

  • Submenu (Sorin)
  • Landing page header (Jesus)
  • Cookies-consent (Sorin)
  • Test the collapse menu (Sorin)
  • Test the icons controller (only the units that are not Service dependent)

We decided not to test those anymore since they only return some kind of data.

  • Animated-icons-info.service
  • Eos-icons-collection.service (Richa)
  • Eos-icons-info.service
  • Eos-icons-search.service
  • Copy to clipboard (Richa)
  • when clicking on an icon we call the service and receive some response
  • when the icon has no data, we still check the response to make sure we are still showing something (in this case I think we return something like "no data available"
  • Maybe test the object structure of the first service call when we get the glyph.json list from the package

Note:

We cant test services at all as they rely on Node.js and Express.js being functional and accessible. We will have to do some researches for this in the future.

Edited by Cynthia Sanchez

Merge request reports