Unit tests for existing web application that reads RSS feeds. I wrote them against underlying business logic of the application utilizing knowledge in the event handling and DOM manipulation.
Jasmine 3.3.0
- RSS feeds are:
- with defined variables and they are not empty
- The menu:
- changes visibility when the menu icon is clicked
- should display when clicked and hide when clicked again
- Initial Entries:
- have at least one entry exist and it's not empty once feed loads
- New Feed Selection:
- changes content when a new feed is loaded
Additional info:
- No test should be dependent on the results of another
- Callbacks should be used to ensure that feeds are loaded before they are tested
- Error handling should be implemented for undefined variables and out-of-bound array access
- When complete, all of your tests should pass
- Clone the repository
- Inside the project files find
index.html
- Open it in your browser