/feedreader

Feedreader repository for the Front-End Web Developer course, part of the nano degree by Udacity. the aim is to use jasmine to build test cases.

Primary LanguageJavaScript

Feed Reader Testing

by Waiel Eid

How to run

All you need to do is run the index.html in your default browser. The tests defined in the Jasmine/spec/feedreader.js file will execute automatically and show the result of the test at the bottom of the page.

Useful resources & Tools used

Tests created

  • A test that loops through each feed in the allFeeds object and ensures it has a URL defined and that the URL is not empty
  • A test that loops through each feed in the allFeeds object and ensures it has a name defined and that the name is not empty
  • A new test suite named "The menu"
    • A test that ensures the menu element is hidden by default
    • A test that ensures the menu changes visibility when the menu icon is clicked.
  • A test suite named "Initial Entries"
    • A test that ensures when the loadFeed function is called and completes its work, there is at least a single .entry element within the .feed container
  • A test suite named "New Feed Selection"
    • A test that ensures when a new feed is loaded by the loadFeed function that the content actually changes