This project is focused on writing tests against the feedreader app. All tests can be found in the feedreader.js file inside the jasmine/Spec folder .
It uses the behavior-driven development framework Jasmine, to test the app's JavaScript code. It is already included on the jasmine folder.
- Feeds are defined   This test ensures that the allFeedsvariable has been defined and that it is not empty.
- Feeds url-property are defined
Loops through each feed in the allFeedsobject and ensures it has a URL defined and that the URL is not empty.
- Feeds name-property are defined
Loops through each feed in the allFeedsobject and ensures it has a name defined and that the URL is not empty.
- Menu is hidden by default
Ensures the menu element is hidden by default. It should have the attribute class='menu-hidden', which is off screen per the CSS file.
- Menu changes visibility on click
Ensures the menu changes visibility when the menu icon is clicked, ensuring the body element toggles 'menu-hidden'class on click.
- Feed contains entries Ensures when the loadFeedfunction is called and completes its work (asynchronous function), there is at least a single.entryelement within the.feedcontainer.
- New Feed Selection
Ensures when a new feed is loaded (on menu-links click events)
by the loadFeedfunction that the content actually changes.