Testing using Jasmine development framework

An Udacity FEND project

Steps to run

Clone or Download the files locally. Open index.html in the browser of your choice. It may take some time to completely load as additional network requests are made. Once loaded, test results should be displayed at the bottom of the page.

Tests That Were Implemented

  • Tests for allfeeds has been defined and that it is not empty
  • Tests for allFeeds have a url and that the url is not empty
  • Tests for allFeeds have a name and that the name is not empty
  • Searches for the class of 'menu-hidden' in the body tag and checks that the menu is hidden
  • Toggles on click event if the menu appears or disappears
  • Tests if the loadFeed function has at least a single '.entry' within the '.feed' container
  • Tests to see if two entries are not equal